I don't understand a lot of what you wrote, but it might help if you focus
on the fact that {% page_menu %} has nothing to do with bootstrap, and is
completely independent of the provided template files it comes with
(pages/menus/*)
which happen to use bootstrap.

You can override those templates to create your own versions without any
style information (as described in the doc snippet you pasted), or create
entirely different templates altogether, since {% page_menu %} is
essentially a glorified inclusion tag that takes an optional template name
as an argument to use.



On Mon, Nov 23, 2015 at 9:24 AM, Nkansah Rexford <[email protected]>
wrote:

> Yep. the {% page_menu %} is proving too smart than my liking.
>
> For example taken from mezzanine docs:
>     {% load pages_tags %}
>         <ul>
>         {% for page in page_branch %}
>         <li>
>             <a href="{{ page.get_absolute_url }}">{{ page.title }}</a>
>             {% page_menu page %}
>         </li>
>         {% endfor %}
>         </ul>
>     <div class="divider"></div>
>
>
> the {% page_menu %}, from my observation, does this:
>
>    - Looks up one step to the most immediate parent element, specifically
>    uls? (please correct me if I'm wrong on this behavior).
>    - Copies every class, id etc values on it
>    - Applies them all to itself,
>    - Then renders its own content in <li>s
>
> I understand this works cleanly for the native boostrap css it comes with,
> in which applying the immediate parent element attributes doesn't really
> change anything. But since that's not how all css frameworks work, thus:
>
>    1. Is there a way I could let {% page_menu %} to give me only, and
>    only the list of sub_menu items, unstyled, without any strings attached ?
>    2. Otherwise, is there a way to get submenu items without using the {%
>    page_menu %} tag? I couldn't figure that out anywhere
>
> All the examples in the pages/menus/* uses the bootstraptized-magical {%
> page_menu %} tag.
>
> Help is much appreciated.
> thanks
>
> --
> 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.
>



-- 
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].
For more options, visit https://groups.google.com/d/optout.

Reply via email to