Copied to clipboard

Flag this post as spam?

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


  • Malachi Burke 4 posts 24 karma points
    Jun 05, 2011 @ 06:27
    Malachi Burke
    0

    ultra nub question regard page properties

    - Installed Umbraco

    - Set up a document type 'Test'

    - Added generic property 'Prop1' alias 'prop1' to document type 'Test' 

    - Made a macro+XSLT named 'Events' 

    - Made a template 'Master' which references said 'Events' macro with the umbraco:Macro tag

    - Created content for one page 'Main'.  Added text to the Prop1 property.

    - Returned to XSL for Events and added the following line:

    <xsl:value-of select="$currentPage/data [@alias = 'prop1']"/>

     

    Alas....my XSL returns nothing.  It seems pretty basic, but I spent over an hour trying to fix this.  I think I missed something fundamental here.  Please help!

  • Daniel Bardi 927 posts 2562 karma points
    Jun 05, 2011 @ 10:24
    Daniel Bardi
    0

    What version of umbraco?  As of version 4.5, the xml schema has changed.

    try this:

    <xsl:value-of select="$currentPage/prop1"/>

  • Malachi Burke 4 posts 24 karma points
    Jun 05, 2011 @ 10:33
    Malachi Burke
    0

    That did it!! I seriously searched high and low and saw no clues about this. Can we update the our.umbraco.com XSLT pages to reflect this?

    p.s. latest, 4.7. was hoping to mess with 5.0 but i guess it's still top secret :)

Please Sign in or register to post replies

Write your reply to:

Draft