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

Idea: Concept of in_navigation expanded to specific navigation area. #59

Open
vinnyrose opened this issue Mar 18, 2015 · 3 comments
Open

Comments

@vinnyrose
Copy link
Contributor

For example one would be able to decide that the "custom quote" page is in_navigation but only shows in the footer navigation. The different navigation areas can be specified in settings.py, as those are typically statically defined by the website design, and then a staff member can select which navigation area(s) is appropriate for the specific page in the admin with a multi-select. The render_menu template tag would need a new argument to have a simple slug passed through to the in_navigation queryset method such as 'header', or 'footer', or 'mobile', etc.

Example:

settings.py
from django.utils.translation import ugettext_lazy as _
...
FLUENT_PAGES_NAVIGATION_AREA = (('header', _('Header')),('footer', _('Footer')))
...

template.html
...
{% render_menu max_depth=1 template="fluent_pages/parts/menu.html" area="header" %}
...
@bashu
Copy link
Member

bashu commented Aug 12, 2015

+1

@vdboor
Copy link
Contributor

vdboor commented Jan 3, 2016

While I also have a need for multiple menu items, I wonder whether it should be solved this way.
The major issue with this is that you can't change the ordering for a different menu.

For one website, I've written a custom menubar app. What would you think of using such approach? (and thus getting that source)

@jpotterm
Copy link
Contributor

The only type of ordering you couldn't do is having pages in multiple menus but in different orders in each menu. In my experience if pages appear in multiple menus it's often fine to order them the same.

The only way around that I can think of is having separate page trees for each menu, but that could be confusing. If you delete a page from one, does it get deleted from the other? If a page is in multiple trees, which is its canonical URL?

Another solution is if you had a master list (not a tree) of pages that let you create/update/delete pages and then one page tree per menu where you can just add/remove existing pages (without modifying the pages themselves).

@vdboor How did your menubar app work? If you could post the source that'd be great.

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

4 participants