Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Template Questions

Second Navigation with Translations?


Reply

3 Posts   910 Views

Avatar
oleze

6 August 2010 at 6:09am Community Member, 65 Posts

Hey there!
I need some help with a second menu. For my new project, I need a second navigation bar with some special pages like "about", "jobs" or whatever. Until now, I always made the ul static within the template so that it wasn't controlled by the system. Then I unchecked the "show up in menus" button in the backend. Actually I need translations now, so the title of the links need to change between German and English. The static method doesn't work for that because I can't get the page titles out of the database based on the current selected language.
These pages aren't children of the others so a normal "SecondLevelNavigation" isn't needed. Is it possible to do what I need? (Second Root Page on my SiteTree or someting like that?).

Greetz
Oliver

Avatar
oleze

8 August 2010 at 1:10am Community Member, 65 Posts

I solved the problem by using the trunk build of the CustomMenus Module. It didn't work for the first time I installed it, I had to write the titles of the backend-tabs into the code (they were missing before) so it didn't show up correctly.

Avatar
oleze

18 August 2010 at 1:16am Community Member, 65 Posts

Because the Custom-Menus Module seems to make more and more problems when switching the language on a page I decided to change my top-menu within the code. To do so, I'm checking the current language with

<% if Locale = de_DE %>

and changing the HTML code within the if-clause.