Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
I'm trying to change a macros content for the children of one node but leave it the same for every other page on the site, the macro appears in the header of the master template.
Is it possible to do something like:
<xsl:if test="$currentPage/ancestor::node/@id = 1134"> hello!</xsl:if><xsl:else> Goodbye!</xsl:else>
I'm totally confused as to how to approach this situation.
You can use xsl:choose to do this:
<xsl:choose> <xsl:when test="$currentPage/ancestor::node/@id = 1134"> hello! </xsl:when> <xsl:otherwise> Goodbye! </xsl:otherwise></xsl:choose>
Perfect! Thank you!
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
something like "xsl:else"
I'm trying to change a macros content for the children of one node but leave it the same for every other page on the site, the macro appears in the header of the master template.
Is it possible to do something like:
I'm totally confused as to how to approach this situation.
You can use xsl:choose to do this:
Perfect! Thank you!
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.