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

Items added to main navigation get multiplied when header_site_navigation_tabs is extended with super() #80

Open
gocemitevski opened this issue Jul 13, 2018 · 0 comments

Comments

@gocemitevski
Copy link

When using ckanext-pages with another CKAN extension that extends header.html, or the header_site_navigation_tabs block specifically, pages or blog posts added to the main navigation through the ckanext-pages UI, are shown once per super() call in the templates.

https://github.com/ckan/ckanext-pages/blob/master/ckanext/pages/plugin.py#L24

If header.html is extended three times in three separate extensions, each super() call will trigger the action for concatenating links in the navigation.

I already communicated this problem with @amercader and he recommended that I report it here.

@gocemitevski gocemitevski changed the title Items added to main navigation get multiplied when with super() Items added to main navigation get multiplied when header_site_navigation_tabs is extended with super() Jul 13, 2018
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

1 participant