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
Know i used to PHP but can this be done with xslt?
<xsl:variable name="imgFolder" select="$currentPage/thumbnailFolder"/>
<xsl:if test="umbraco.library:RequestQueryString('id') > 0"> <xsl:variable name="imgFolder" select="umbraco.library:RequestQueryString('id')"/> </xsl:if>
now i says The variable or parameter 'imgFolder' was duplicated within the same scope
<xsl:variable name="myVar"> <xsl:choose> <xsl:when test="umbraco.library:RequestQueryString('id') > 0"> <xsl:value-of select="umbraco.library:RequestQueryString('id')"/> <xsl:otherwise> <xsl:value-of select="$currentPage/thumbnailFolder"/> </xsl:otherwise> </xsl:choose> </xsl:variable>
Variables in xslt can't be changed, so you must chose right variable in initialization ....
Petr
Hi Michael
I guess you could solve it by using a choose like
<xsl:variable name="imgFolder">
<xsl:choose>
<xsl:when test="umbraco.library:RequestQueryString('id') > 0"><xsl:value-of select="umbraco.library:RequestQueryString('id'" /></xsl:when>
<xsl:otherwise><xsl:value-of select="$currentPage/thumbnailFolder" /></xsl:otherwise>
</xsl:choose>
</xsl:variabel>Hope this helps/Jan
Arh, too slow :)
Super! it works great :)
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
if variable
Know i used to PHP but can this be done with xslt?
<xsl:variable name="imgFolder" select="$currentPage/thumbnailFolder"/>
<xsl:if test="umbraco.library:RequestQueryString('id') > 0">
<xsl:variable name="imgFolder" select="umbraco.library:RequestQueryString('id')"/>
</xsl:if>
now i says The variable or parameter 'imgFolder' was duplicated within the same scope
Variables in xslt can't be changed, so you must chose right variable in initialization ....
Petr
Hi Michael
I guess you could solve it by using a choose like
<xsl:variable name="imgFolder">
<xsl:choose>
<xsl:when test="umbraco.library:RequestQueryString('id') > 0"><xsl:value-of select="umbraco.library:RequestQueryString('id'" /></xsl:when>
<xsl:otherwise>
<xsl:value-of select="$currentPage/thumbnailFolder" />
</xsl:otherwise>
</xsl:choose>
</xsl:variabel>
Hope this helps
/Jan
Arh, too slow :)
Super! it works great :)
is working on a reply...