-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature Request: Render DokuWiki style links #15
Comments
Hi @Joecorleone As I understand it, if the url contained dwlabel="labelText" then the plugin could then hide the url behind the label? So when you click on labelText it takes you to the url defined? Let me know if I have understood correctly :) |
Hei, thanks for your reply. Yes, exactly I hoped it would be parsed again, but that seems not to be the case. Yes, I thought offering the option to add a I had some fun playing around with your code. My knowledge of php is very lacklustre, so my solution is probably quite ugly. syntax.php for displaying rating and checkbox as symbols Edit: I just realized that the fields are called "rating" and "checkbox" in airtable. I changed it accordingly. |
@Joecorleone I like the concept. Had a quick look at the fork. It would be better if the plugin could recognise the type of the fields entered and decide how to render them without the user specifying to do so. Then you wouldn't have to write: What data does airtable API return for the "Priority" and "Completed" fields? Could the plugin recognise the type as a checkbox field? |
Yes, I absolutely agree. That would be much better. I will look through the API more. If the API returns the field type, that would be nice. |
@Joecorleone Ok, as far as I'm aware Airtable has a Meta API that could be used to get field types but they've closed access to it and haven't allowed any new members for about a year now (typical 😢 ) I'm wondering if it would be beneficial to specify the field type in the dokuwiki query so the plugin can process the data more effectively. Something like:
It would mean more the user would have to type in and get right but could offer more functionality? Edit: Could also have a "link" type for any external links with the option to have a label there? |
Oh okay, I wasn't aware that they provided something like that previously. Now I am extra sad 😃 Edit: Just one comment. While defining the structure, maybe there is also a way for the user to specify the symbol to be used for rating (and checkbox). Airtable has these options: (checkmark,) star, heart, thumb and flag. Maybe there are cases, where this is relevant to the meaning. Maybe it can be just the a suffix like |
@Joecorleone Hmm true, yes probably people would have a colon in a field title. Maybe a user could write: Then for links they could write: |
@Joecorleone Ahh I see, so you want to define the your link label in airtable? |
@Joecorleone Check the latest dev branch, I think this is now resolved :) |
@CameronWard301 Hei, thanks for your effort and sorry, that I have not responded yet. I have been busy with other tasks recently. Hopefully, I can come back to this soon. |
Hi @CameronWard301 ,
I am enjoying the possibilities provided by your plugin. In my case I am creating wiki pages for each of the records in a certain table in airtable and using the information from the table for an overview and on each individual page to have an automated description.
I added a DokuWiki style link
[[ namespace:page | label ]]
to each record referencing the corresponding wiki page. Well, I realized, that links have to be rendered as you are doing here. In principle I can use absolute links to each wiki page and the field type "url" in airtable. Then they could be used in airtable. However, in many cases being able to provide a label for a link provides a better look in DokuWiki, like in[[ link | label ]]
.Are you planning to support rendering of DokuWiki style links?
Edit:
To summarize, I am actually just looking for a way to define a label for urls, to improve how links from airtable can be displayed in DokuWiki. In the end defining the label in a link like this https://wiki.url.com/doku.php?dwlabel="labelText"&id=namespace:page would be equally great. It would have the advantage, that the link can be used in airtable too.
Edit2:
One thing I did not consider in the suggestion in "Edit" is, that this way the links are marked as external and not marked as (non)existing.
The text was updated successfully, but these errors were encountered: