Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Problem with I18N navigation menu
#7
(2017-02-06, 04:45:37)Tyblitz Wrote: Hi there, BF68,

There is no such feature included out of the box that I know of.
A while ago I wrote a function for I18N navigation where:
  • if the page has child pages, it only opens the sub-menu.
  • if the page doesn't have child pages, it opens the page.
You can see it at this website: http://seiltanzen.com
...
However: depending on your .htaccess rewrite rules and whether you use pretty urls, you will need to change one line in the code. In your admin dashboard, have you checked "Use fancy URLs?" and set a custom permalink structure?
This code was written for a permalink structure like: /%parent%/%slug%/ (eg. http://mysite/hobbies/fishing).

Hi There,

Many thanks for the reply and the suggestion. This sounds great. I will have time only next weekend to work with it and test it in my environment.

I'll keep you posted

Have a great week!
Reply


Messages In This Thread
Problem with I18N navigation menu - by BF68 - 2017-02-05, 17:24:29
RE: Problem with I18N navigation menu - by Bigin - 2017-02-05, 19:30:45
RE: Problem with I18N navigation menu - by BF68 - 2017-02-05, 19:58:50
RE: Problem with I18N navigation menu - by BF68 - 2017-02-05, 20:09:11
RE: Problem with I18N navigation menu - by BF68 - 2017-02-05, 20:12:26
RE: Problem with I18N navigation menu - by BF68 - 2017-02-06, 07:03:43
RE: Problem with I18N navigation menu - by BF68 - 2017-02-12, 03:59:59



Users browsing this thread: 1 Guest(s)