New default modifier required: hasSubnavigation

jeroendesloovere's Avatar

jeroendesloovere

17 Apr, 2012 12:37 PM

I could really see the benefits of a new default modifier for the frontend in Fork CMS.
=> hassubnavigation

Usage:
This could be used in any type of site when you have multiple subnavigations possible.
Or when you use default.tpl for every page and where the only difference between some pages a subnavigation is.

Example:

{option:hassubnavigation:'page':{$page.id}:2}
<nav id="subnavigation">
    <header>
        <h2>Our products:</h2>
    </header>
    <div class="content">
        {$var|getsubnavigation:'page':{$page.id}:2}
    </div>
</nav>
{/option:hassubnavigation:'page':{$page.id}:2}

Or is this impossible when using an option?

  1. 1 Posted by frederik on 17 Apr, 2012 01:09 PM

    frederik's Avatar

    Don't know if you know this but you can change the template for the navigation or sub navigation modifier.
    You can say to needs too use a different template and do whatever you want in that template for your sub navigation and get the same result.

  2. 2 Posted by jeroendesloover... on 17 Apr, 2012 02:11 PM

    jeroendesloovere's Avatar

    Yep, just noticed this.

    This makes the hasSubnavigation unnecessary off course.

  3. jeroendesloovere closed this discussion on 17 Apr, 2012 02:11 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac