How to generate a multi-level navigation bar with the ExpressionEngine's Structure add-on? -


I am working with the latest versions of ExpressionEngine and Compositing add-ons.

I'm looking for some help on creating 4 item nav bar, where two items are in a different structure level.

My composition lines look like this:


Services (Parents)

----- Translation ( Children)

----- Video (Children)

Studio (Parents)

About Us (Parent)


And my main navigation bar should be:

Translation - Video - Studio - About Us In

As you can see that they are at different levels I also have the structure entries add-on. Shish'm working for hours, but I can not find a way to prepare the navigation.

I would appreciate any help you might give me. The structure eventually stores its 'pages' as regular EE entries, so that you can hardcode the entry IDs in one channel: the entries to hold the titles:

  & Lt; Ul & gt; {Exp: Channels: Entries dynamic = "No" EntryID = "3 | 4 | 6 | 12" disabled = "Categories | endorsement | member_data"} 
  • gt; & Lt; A href = "{page_uri}" & gt; {Title} & lt; / A & gt; & Lt; / Li & gt; {/ Exp: Channel: Entries} & lt; / Ul & gt;

    Alternatively, if you want to give full control to the customer appearing in navigation, then you can set up a custom checkbox field for 'Show on Primary NAV' and Then use something like this:

      & lt; Ul & gt; {Exp: channel: entries dynamic = "no" search: option = "show on primary nav?" 
  • {l =} {0}}
  • gt; & Lt; Li & gt; & Lt; A href = "{page_uri}" & gt; {Title} & lt; / A & gt; & Lt; / Li & gt; {/ Exp: Channel: Entries} & lt; / Ul & gt;

    (Better would be a bit better by using P & T checkboxes instead of built-in crap.)

    There is no crime on the structure module, The kind of thing that really wants me to use Neo-EE, or more often I choose the option of shipping a completely harsh top level ... the customer usually thinks that they need complete control But the reality is that top level navy Gation is rarely decreasing (and you will still need to do other work on the site when there is a possibility!).

  • Comments

    Popular posts from this blog

    Python SQLAlchemy:AttributeError: Neither 'Column' object nor 'Comparator' object has an attribute 'schema' -

    java - How not to audit a join table and related entities using Hibernate Envers? -

    mongodb - CakePHP paginator ignoring order, but only for certain values -