Skip to main content

Timeline for How to write a simple navigation?

Current License: CC BY-SA 3.0

7 events
when toggle format what by license comment
Mar 16, 2018 at 17:07 comment added James Smith The main reason I don't like this approach (other than the performance hit), is that it requires the editor to manage the menu in the 'Entries' area, when intuitively it feels like navigation should be managed in the 'Globals' area.
May 22, 2015 at 11:40 comment added Keith Mancuso For each link in the loop just add an if craft.request.url == this link
May 21, 2015 at 13:25 comment added KSPR How would you add an active class to each link with this configuration?
Aug 13, 2014 at 17:54 vote accept KSPR
Jun 13, 2014 at 10:03 comment added Bryan Garrant I have also used this method on 4 sites now and it works well. I just wish we could add the fields to a tab in a field set instead of needing a separate section.
Jun 12, 2014 at 17:14 comment added Stuart McCoy This is the best answer in my opinion and if you want to ensure it's a single level you need only to set the structure section to a max level of 1 and remove the {% ifchildern %} tags from the above code. Complete flexibility for nav link order, where links go, etc.
Jun 12, 2014 at 17:02 history answered Keith Mancuso CC BY-SA 3.0