Help with filtering content
This is an open discussion with 1 reply, filed under XSLT.
Search
Figured it out. This is appropreate incantation:
<xsl:apply-templates select="page[types/type != 'hidden' and types/type = $language]"/>
Create an account or sign in to comment.
So...
I have this nice piece of code which is supposed to hide menu items that don't belong to the current language.
And this is XML I have that is providing navigation info:
Home HE should be hidden when
$language
isen
, while Home and About are supposed to be visible.About page is visible, and Home is not. I'm guessing that is because besides
en
, Home also hasindex
attribute.So, how should I make that statement to filter out those results properly?