Are num_children and has_children attributes used by templates outside of the menu generation context? Just concerned about side effects where those values change depending on what menu you happen to be processing.
Also, I notice that the version of bootstrap in mezzanine is pre 2.0. It might be time to think about updating bootstrap support, as there have been a lot of fixes and features added with 2.0. I've upgraded our own site to 2.1, and it is working pretty well, but would love if we could just drop in templates from bootswatch an have everything just work style-wise.
On Sep 17, 2012, at 7:44 PM, Stephen McDonald <st...@jupo.org> wrote:Right that makes sense. It'll need a bit of a refactor in the page_menu template tag where it all happens - doesn't look like a simple change, but it definitely needs to be fixed.
On Tue, Sep 18, 2012 at 7:35 AM, Josh Cartmell <joshc...@gmail.com> wrote:
Thanks Steve, I actually had seen that. Right now page.has_children evaluates to true even if the children aren't in the current menu (so if about has a single child name team, but team doesn't show in the dropdown, about still gets the caret).
As an example if you look at the demo site right now, the 2nd item in the drop down menu has a title of "The home page." It has the little dropdown caret next to it, even though it's only child is set to not show in any menus.
On Mon, Sep 17, 2012 at 1:56 PM, Stephen McDonald <st...@jupo.org> wrote:There's already a helper for it that's used and appear to work correctly for me:--On Tue, Sep 18, 2012 at 6:49 AM, Josh Cartmell <joshc...@gmail.com> wrote:
I noticed that the caret in the dropdown shows up indicating a dropdown, even if none of a page's children show in the menu. I'm not exactly sure how to go about it of the top of my head, but it seems that we may need another helper, something like has_children_in_menu. Am I missing anything and/or does anyone have any ideas or comments?
Thanks,
Josh
Stephen McDonald
http://jupo.org
--
Stephen McDonald
http://jupo.org
Also, I notice that the version of bootstrap in mezzanine is pre 2.0. It might be time to think about updating bootstrap support, as there have been a lot of fixes and features added with 2.0. I've upgraded our own site to 2.1, and it is working pretty well, but would love if we could just drop in templates from bootswatch an have everything just work style-wise.Agreed. Hopefully it's just a matter of dropping in the new version.