ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Sharing pages between templates

March 31, 2012 8:03am

Subscribe [2]
  • #1 / Mar 31, 2012 8:03am

    Nigel-Robertson

    11 posts

    Hi

    v2.4.0 - Build: date 20120123

    I’ve built a site which can be viewed here -
    http://www.modelvillage.ie

    I’m using ‘Pages’ module.

    If you goto - ‘Vistors’ (main nav) and click ‘facilities’ (sub nav)
    that takes you to the Vistors template page ‘facilities’ - fine.

    But if you go to ‘Schools’ and click ‘facilities’ (sub nav) that of
    course takes you to the Visitors template page with Visitors
    sub menu, and you lose the Schools 4 extra entries in the sub nav.

    Basically Schools sub menu shares the Visitors sub menu but has
    4 extra links. Is there a way of going to ‘facilities’ from schools template
    and still seeing the schools sub menu (with the 4 extra entries)?

    Regards
    Nigel

  • #2 / Mar 31, 2012 2:22pm

    Rob Games

    38 posts

    You should be a able to use conditionals and segments to create the menu, e.g:

    {if segment_1 == "schools"}
        Your 4 additional nav items here
    {/if}

    If your client needs to edit the hierarchy or the navigation is quite complex try using an add-on like “structure” or “navee”

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases