Hello,
How do I override tree.html? Here is what base.html says:
<div class="panel panel-default tree">{% page_menu
"pages/menus/tree.html" %}</div>
I tried doing:
my_theme/templates/pages/menus/tree.html
but it doesn't seem to work. In tree.html it says:
"""
{# wrap the next line with 'if page.is_current_or_ascendant' #}
{# to only show child pages in the menu for the current page #}
{% if page.is_current_or_ascendant %}{% if
page.has_children_in_menu %}{% page_menu page %}{% endif %}{% endif %}
"""
so I did and I don't see anything different.
thank you,
Brandon Keith Biggs <http://www.brandonkeithbiggs.com/>
On 7/17/2015 5:55 AM, Stephen McDonald wrote:
It's deprecated for quite a while and apparently left there mistakenly.
You can see when it was removed which will show you how to reproduce
what it did:
https://github.com/stephenmcd/mezzanine/commit/2cc4fe261350b7ff5736ff07f31923e97345a5fa#diff-30f9afdcd3dfff4737de4015c43a6f09
On Fri, Jul 17, 2015 at 12:02 PM, Brandon Keith Biggs
<[email protected] <mailto:[email protected]>> wrote:
Hello,
I want to make it so that the pages in the left-hand tree only
show children and siblings of the top parent. so if I have:
about
about/blog
about/our story
contact us
contact us/partnership
contact us/legal
when I click on about it only shows the our story and blog.
I was looking through the config settings and see the configuration:
PAGES_MENU_SHOW_ALL
and it says: """
If True, the left-hand tree template for the pages menu will show
all levels of navigation, otherwise child pages are only shown
when viewing the parent page.
Default: True
"""
I set it to false, but don't see any change. I restarted the
server and everything. Here is what my defaults.py looks like:
my_theme/defaults.py
from mezzanine.conf import register_setting
register_setting('PAGES_MENU_SHOW_ALL', default=False)
What am I doing wrong? Because PAGES_MENU_SHOW_ALL=False seems to
be exactly what I want!
thanks,
--
Brandon Keith Biggs <http://www.brandonkeithbiggs.com/>
--
You received this message because you are subscribed to the Google
Groups "Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it,
send an email to [email protected]
<mailto:[email protected]>.
For more options, visit https://groups.google.com/d/optout.
--
Stephen McDonald
http://jupo.org
--
You received this message because you are subscribed to the Google
Groups "Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to [email protected]
<mailto:[email protected]>.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Mezzanine
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.