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
Here is my code that i want to use direct Test page in my xslt but it did'n get any out put
where is the problem in this syntax?
<xsl:for-each select="$currentPage/ancestor-or-self::SiteRoot/ImageTest/imgcontent"> <xsl:if test="$currentPage [name() = 'TEST']"> {"url":"<xsl:value-of select="imagegallaery" />","width":"333","height":"249"} <xsl:if test="position() != last()">,</xsl:if> </xsl:if> </xsl:for-each>
Hi shine,
When doing that, you're testing the XML element name (the Alias your document type gets) - if you're looking for the Name you give the page in Umbraco (i.e. what you see in the tree and on the Properties tab) use @nodeName :
<xsl:for-each select="$currentPage/ancestor-or-self::SiteRoot/ImageTest/imgcontent"> <xsl:if test="$currentPage[@nodeName = 'TEST']"> {"url":"<xsl:value-of select="imagegallaery" />","width":"333","height":"249"} <xsl:if test="position() != last()">,</xsl:if> </xsl:if> </xsl:for-each>
/Chriztian
hey chriztian
TEST is my page name which is in my content of umbraco and i want to use direct name of content page in my xslt
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
How to use direct current page namein xslt?
Here is my code that i want to use direct Test page in my xslt but it did'n get any out put
where is the problem in this syntax?
<xsl:for-each select="$currentPage/ancestor-or-self::SiteRoot/ImageTest/imgcontent">
<xsl:if test="$currentPage [name() = 'TEST']">
{"url":"<xsl:value-of select="imagegallaery" />","width":"333","height":"249"}
<xsl:if test="position() != last()">,</xsl:if>
</xsl:if>
</xsl:for-each>
Hi shine,
When doing that, you're testing the XML element name (the Alias your document type gets) - if you're looking for the Name you give the page in Umbraco (i.e. what you see in the tree and on the Properties tab) use @nodeName :
/Chriztian
hey chriztian
TEST is my page name which is in my content of umbraco and i want to use direct name of content page in my xslt
is working on a reply...