I have a <div > element consisting of umbraco:Item field the Body Text but i want to hide the <div> it when there is a parameter passed with umbraco.library:RequestQueryString in the xslt file
<xsl:choose> <xsl:when test="umbraco.library:RequestQueryString('yourKey')"> Your code without the DIV here </xsl:when> <xsl:otherwise> Your code with the DIV here </xsl:otherwise> </xsl:choose>
the problem is the div is in Tempolates content page umbraco:Item field for teh BODYTEXT is within that div is there anyway we can have access to it when the page refreshes it shos back again
hide div item from xslt
I have a <div > element consisting of umbraco:Item field the Body Text but i want to hide the <div> it when there is a parameter passed with umbraco.library:RequestQueryString in the xslt file
any code example wil be useful
Hi Max,
Create an XSLT macro and use the following code
<xsl:choose>
<xsl:when test="umbraco.library:RequestQueryString('yourKey')">
Your code without the DIV here
</xsl:when>
<xsl:otherwise>
Your code with the DIV here
</xsl:otherwise>
</xsl:choose>
Rich
the problem is the div is in Tempolates content page umbraco:Item field for teh BODYTEXT is within that div is there anyway we can have access to it when the page refreshes it shos back again
Just replace the umbraco:item field for a XSLT macro, then with there you use your bodyText property
http://blog.percipientstudios.com/2009/5/5/your-first-umbraco-xslt-macro.aspx
Rich
is working on a reply...