How do i do language-aware Site-Navigation best?
Permalink
Hello all,
i am trying to find an easy way to set up language-specific site-wide navigation right with concrete5 5.5 and the internationalization add-on.
What i want is, that the navigation is just there as a block added to the Header Nav - Area - but language specific, so that it automatically changes the language, and i do not need to do this by hand for every new page i create.
I tried a GlobalArea - which is nice, but the assigned Stack is not language-aware. It would be possible to create different page types for each language - but this would not be very practical, especially when creating more than 2 or 3 language versions.
Is there any existing practical solution?
Best regards and thanks for helping,
Martin
i am trying to find an easy way to set up language-specific site-wide navigation right with concrete5 5.5 and the internationalization add-on.
What i want is, that the navigation is just there as a block added to the Header Nav - Area - but language specific, so that it automatically changes the language, and i do not need to do this by hand for every new page i create.
I tried a GlobalArea - which is nice, but the assigned Stack is not language-aware. It would be possible to create different page types for each language - but this would not be very practical, especially when creating more than 2 or 3 language versions.
Is there any existing practical solution?
Best regards and thanks for helping,
Martin
Hey there! I can give you a solution, but it requires some PHP coding. You needn't code all by yourself, I can give a hands-on description on what to do and where. I don't think that this could be achieved in a point and click manner though. The basic idea would be to traverse up through the parent pages up until the language section and set the autonav to generate the list starting at that page. This can only be achieved programmatically, I believe. So, if you're interested, I can post the code, with some comments. Cheers!