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 want to display an image if the name of the current node is 'create'. I know this should be simple but its refusing to work.
ive tried:
<xsl:if test="$currentPage/ancestor-or-self::root//node [@nodeName = 'CREATE']"> <img src='/images/mosquitocreate_logo.jpg' alt='' /> </xsl:if>
<xsl:if test="$currentPage/node[@nodeName = 'CREATE']"> <img src='/images/mosquitocreate_logo.jpg' alt='' /> </xsl:if>
Hi Phil - regardless of your Umbraco version, this is the right XPath to use:
<xsl:if test="$currentPage/@nodeName = 'CREATE'">
/Chriztian
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
check if currentPage is
i want to display an image if the name of the current node is 'create'. I know this should be simple but its refusing to work.
ive tried:
<xsl:if test="$currentPage/ancestor-or-self::root//node [@nodeName = 'CREATE']">
<img src='/images/mosquitocreate_logo.jpg' alt='' />
</xsl:if>
<xsl:if test="$currentPage/node[@nodeName = 'CREATE']">
<img src='/images/mosquitocreate_logo.jpg' alt='' />
</xsl:if>
<xsl:if test="$currentPage/node[@nodeName = 'CREATE']">
<img src='/images/mosquitocreate_logo.jpg' alt='' />
</xsl:if>
Hi Phil - regardless of your Umbraco version, this is the right XPath to use:
/Chriztian
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.