-
Notifications
You must be signed in to change notification settings - Fork 34
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
Change the behaviour of datatable Tag links #3
Comments
Together with current advancements in Datatable plugin (Type aliases) and this patch, there is a possibility to configure a type alias for "tag" that produces links in a definable namespace:
The patch is a hack of the "works for me"-kind - maybe there is a more sensible approach to using "prefix" and "postfix" than what I coded. This code tests if the last character of "prefix" is the namespace divider. If so, it concatenates prefix, column-name and postfix to form the link target. Otherwise it just links to prefix. |
Changing the target of tags can be done by using the alias feature of the data plugin. Go to 'Admin' page and in the list below to 'Data Plugin: Field Aliases'
Save aliases Now you can use it in a dataentry, e.g.:
See also https://www.dokuwiki.org/plugin:data#change_tag_target_with_a_tag_type |
I created a Patch that checks for the existance of a page called “Object” in the root namespace and in the current namespace. If it doesn't find anything, it checks whether <current_namespace>:start or <id_of_current_namespace> exists as a page and assumes a data table there.
Maybe there is a more elegant solution to this problem, perhaps via config option or an option in the datatable syntax. I think that I saw such an option for the Tagcloud syntax...
The text was updated successfully, but these errors were encountered: