Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Bex 444 posts 555 karma points
    Aug 31, 2010 @ 15:20
    Bex
    0

    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

  • Bex 444 posts 555 karma points
    Aug 31, 2010 @ 16:20
    Bex
    0

    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.

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies