I have a custom datatype based on the dropdown list on my template and I need to access the value selected in my xslt and I cant get it to work!
The dropdown contains the name of the css style sheet that needs to be applied to the page. I have tried using a page field, but when using run at server on the head tag this doesn't work as the pagefield renders as plain text rather than the actual value. I read somewhere using a macro will.. but I can't get it to work.
My line is xslt is:<xsl:value-of select="@theme" />
<xsl:value-of select="$currentPage/theme" /> but this doesnt work if in a head with runat server.. Am going to post another post on that as I've see many people talking about the problem but I can't find the solution.
Access Page Field in XSLT
Hello All
I have a custom datatype based on the dropdown list on my template and I need to access the value selected in my xslt and I cant get it to work!
The dropdown contains the name of the css style sheet that needs to be applied to the page.
I have tried using a page field, but when using run at server on the head tag this doesn't work as the pagefield renders as plain text rather than the actual value.
I read somewhere using a macro will.. but I can't get it to work.
My line is xslt is:<xsl:value-of select="@theme" />
What am I doing wrong?
Bex
Ok, I have found how to get a value
<xsl:value-of select="$currentPage/theme" /> but this doesnt work if in a head with runat server..
Am going to post another post on that as I've see many people talking about the problem but I can't find the solution.
is working on a reply...