mikrobi/babel — Issue #41: Babel & Wayfinder's startId is not working
Author: hvillega
Created: 2011-10-27 14:14:48+00:00
State: open

Hi,

I'm creating a website in 3 different languages following the instructions from:
http://www.multilingual-modx.com/blog/2011/seo-friendly-multilingual-websites-with-modx-and-babel.html

I need to use Wayfinder with a specific starId=`2` which needs to be translated into an other ID depending on the other language's contexts. For example:

German: ID 2 (leading)
English: ID 58
Spanish: ID 59.

I assume I can use Babel.BabelTranslation in order to get the needed ID for every language, so my Wayfinder set up is:
[[!Wayfinder? &startId=`[[BabelTranslation? &contextKey=`de` &resourceId=`2`]]`]]

But sadly is not working because I get the root ID: 0 and wayfinder displays all the root documents on my navigation which is not what I need.

Maybe this is not really an issue with babel but the way I'm using it, so any feed back will be appreciated.