GetSimple Support Forum

Full Version: i18n / nav - missing "current" class
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Did anyone have a problem with getting "current" class on menu using i18n?

If I use common menu code, in my case:

get_i18n_navigation(return_page_slug(),1,2,I18N_SHOW_MENU);

I get the page position classes, but if I use:

get_i18n_navigation(MYPAGESLUG,1,2,I18N_SHOW_MENU);

(where I need to constantly have entire menu of a specific slug), the position tags are missing.

The only option I can think of (I am using java accordion), is to make a special template for a specific purpose, so I am wandering would it be possible to skip it.


Thanks in advance!
(2012-12-02, 10:55:07)mrmut Wrote: [ -> ]Did anyone have a problem with getting "current" class on menu using i18n?

If I use common menu code, in my case:

get_i18n_navigation(return_page_slug(),1,2,I18N_SHOW_MENU);

I get the page position classes, but if I use:

get_i18n_navigation(MYPAGESLUG,1,2,I18N_SHOW_MENU);

(where I need to constantly have entire menu of a specific slug), the position tags are missing.

The current page is determined by the first parameter to the get_i18n_navigation function, so of course your second call will not mark the current page. See http://mvlcek.bplaced.net/multi-level-na...-multiple/ for the solution.
Thank you very much for your reply.

I will try this, and will write comments back.