Skip to content
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

Sidebar for a certain namespace #68

Open
punk-t opened this issue Feb 24, 2015 · 2 comments
Open

Sidebar for a certain namespace #68

punk-t opened this issue Feb 24, 2015 · 2 comments

Comments

@punk-t
Copy link

punk-t commented Feb 24, 2015

After hours of fiddling around and reading your issue #11 again and again I found out that the sidebar page has to be created in the root namespace of your wiki.
In contradiction to other templates (like dokuwiki default et al.) this root sidebar page is the only one to be interpreted. Sidebar pages inbetween any namespace are ignored in this template. Is this on purpose?

@apexskier apexskier added the bug label Mar 3, 2015
@apexskier
Copy link
Member

This is not intentional, I'd suspect it results from the page_findnearest function.

@apexskier apexskier removed the bug label Mar 4, 2015
@apexskier
Copy link
Member

Yup, take a look at the function definition. It takes a pagename, not a namespaced location.

This should make it possible to have namespace specific sidebars, but I'm not seeing that work on an install I just tested on. Could be a caching issue though.

I'm not able to work on this currently, but submit a pull request if you are able to make it work better.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants