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
- 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!
What version of umbraco? As of version 4.5, the xml schema has changed.
try this:
<xsl:value-of select="$currentPage/prop1"/>
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 :)
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
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!
What version of umbraco? As of version 4.5, the xml schema has changed.
try this:
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 :)
is working on a reply...