Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
i18n / nav - missing "current" class
#1
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!
Reply
#2
(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.
I18N, I18N Search, I18N Gallery, I18N Special Pages - essential plugins for multi-language sites.
Reply
#3
Thank you very much for your reply.

I will try this, and will write comments back.
Reply




Users browsing this thread: 1 Guest(s)