<![CDATA[ Babel+getResources menu doesn't switch across the context - My Forums]]> https://forums.modx.com/thread/?thread=99697 <![CDATA[Babel+getResources menu doesn't switch across the context]]> https://forums.modx.com/thread/99697/babel-getresources-menu-doesn-t-switch-across-the-context#dis-post-539245
I'm pretty new to MODx, especially to multilangual part, sorry for the newbish qustion.

I've installed Babel, everything works perfectly except one thing - when I switch to another context, my menu links do not change, they are the same. It's very frustrating, as I've tried nearly everything that was in google, now I hope I can find help here.

My current menu snippet call looks like this:

[[!getResources? &parents=`[[++site_start]]` &limit=`5` &tpl=`menu_tpl`]]


site_start is a context setting, that indicates parent ID for the context, as it described in tutorials.

I've tried [[++parents]] for &parents, and also I've tried:

[[!getResources? &parents=`[[BabelTranslation? &contextKey=`[[++cultureKey]]`]]` &limit=`5` &tpl=`menu_tpl`]]


Nothing helps. For example, I've made a doc called "test", and it's english version "testen". When I'm on the main page of the site and switch to English context, everything changes to English language, even the menu title changes from "test" to "testen", but when I click on the link it still leads to test.html, not en/test.html

I'm using nginx, if's important.]]>
roilen Mar 05, 2016, 06:45 PM https://forums.modx.com/thread/99697/babel-getresources-menu-doesn-t-switch-across-the-context#dis-post-539245
<![CDATA[Re: Babel+getResources menu doesn't switch across the context (Best Answer)]]> https://forums.modx.com/thread/99697/babel-getresources-menu-doesn-t-switch-across-the-context#dis-post-539246

I've found a solution minutes later I've posted this.

I case anyone is also so newbish, as I am, just add to your "menu_tpl" this:

<a href="[[++cultureKey]]/[[~[[+id]]]]">]]>
roilen Mar 05, 2016, 06:59 PM https://forums.modx.com/thread/99697/babel-getresources-menu-doesn-t-switch-across-the-context#dis-post-539246