-
Notifications
You must be signed in to change notification settings - Fork 22
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
Grouping by namespaces to make it compatible with translation #147
Comments
As a temporary fix, I edited the script "helper.php" and added the following to line #488 (for the version at the time of this writing):
Note that the function str_replace() is not required here. It is only used to add spaces around the colons; as this would make it easier to read namespace paths. |
No comment on the usefulness or correct implementation of your feature request. But it would be better to use CSS for formatting. So instead of replacing $content = str_replace(':', '<span class="pathsep"></span>', … .pathsep {
margin-left: .4em;
margin-right: .4em;
}
.pathsep:before {
content: "▸";
} |
Thank you for the suggestion. I'm aware that dokuwiki has the option to use slashes instead of colons for namespaces separation. So, hardcoding the colons in the code is not a good practice. |
Could you give an example of the syntax you use for creating a list (with the tag plugin?)? |
This is a good plugin, but it a lacks an essential feature in my opinion! The auto-generated list should have the ability to group or sort pages by their namespaces.
In my wiki, each page has a number of translations. A page shares the same tags with other pages in different languages. When a reader clicks on a tag in one page, the pagelist plugin lists all pages having that tag, but without distinction between their namespaces! It would be better to group the pages using the topmost namespace, i.e.: en, it, de, etc. In case this is too much to ask, then at least add the ability to show namespaces for the listed pages, e.g.: en:nsp1:page1, de:nsp1:page1, etc., and sort them accordingly.
Thank you!
The text was updated successfully, but these errors were encountered: