I’m creating a multilingual site and need to update the primary navigation based on the user’s location in the page tree (each language is set up in it’s own container).
My current call is as follows (formatted here for readability):
[+phx:if=`[!UltimateParent!]`:is=`122`:then=
`[!Wayfinder? &startId=`122`
&hereClass=`active`
&rowIdPrefix=`primary-nav-`
&outerTpl=`primaryNav_outerTpl`
&rowTpl=`rowTpl`
&includeDocs=`2,3,4,5,65,6,7,8`!]`
:else=
`[!Wayfinder? &startId=`124`
&hereClass=`active`
&rowIdPrefix=`primary-nav-`
&outerTpl=`primaryNav_outerTpl`
&rowTpl=`rowTpl`
&includeDocs=`126,13,161,199,209,210,224`!]`+]
The UltimateParent call returns ’122’ as anticipated - but the PHx logic is
always executing the ’else’ conditional - whether it’s a Wayfinder call or just a string of ’foo’.
Looking on the wiki didn’t lead to anything new. The Wayfinder call operates correctly when PHx is removed from the equation - am I leaving something out or writing my PHx incorrectly?