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...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
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...