Re: [mezzanine-users] Check if page has child pages

2016-04-11 Thread Geoffrey Eisenbarth
Did anything like this ever get implemented into mezzanine? I was looking to do something similar, add a sidebar in the base.html if the given page has children. What was your fix? On Wednesday, November 11, 2015 at 5:56:20 PM UTC-6, Neum Schmickrath wrote: > > Thanks for the reply Danny. The pr

Re: [mezzanine-users] Check if page has child pages

2015-11-11 Thread Neum Schmickrath
Thanks for the reply Danny. The problem with both of those is they expect to be in a recursive "for" loop so I'll get back multiple results depending on how many children there are. I'll go ahead and create my own for now. Just didn't want to be adding something that was already there :) On Wed

Re: [mezzanine-users] Check if page has child pages

2015-11-11 Thread Danny
On 12/11/2015 5:22 AM, Neum Schmickrath wrote: I have a layout I'm working on that has a sidebar that displays a sub-menu of the child pages of the current page being viewed. On category pages I can easily test if there are child categories by using {% if child_categories %} and then showing th

[mezzanine-users] Check if page has child pages

2015-11-11 Thread Neum Schmickrath
I have a layout I'm working on that has a sidebar that displays a sub-menu of the child pages of the current page being viewed. On category pages I can easily test if there are child categories by using {% if child_categories %} and then showing the sidebar. On pages is there a similar processo