(Shorten a lot - but the general idea should be clear)
So when you've successfully located the NewsArticle you just add /featuredImage to get that - @ is used for the attributes (e.g. @isDoc, @id etc.)
That's one thing - the other thing is that you're only searching along the ancestor axis of the current page, which might not be enough - you might want to locate a common ancestor first, and then go down that one to select the NewsArticles - something like this:
Chriztian, Thanks! but I am still very new to Umbraco and xslt/xpath. How would the xsl tag look to refrence the "NewsArticle" if the folder is located at "Content/Home Page/News/Alumni/2012" under the Umbraco content section? I would greatly appreaciate this help as it would help me better understand xslt.
Referencing A Property of a Doctype
How would I refrence the property "featuredImage" of a DocType named "NewsArticle" using xslt?
I believe it would be something like this:
<xsl:variable name="featuredNewsImges" select="$currentPage/ancestor::NewsArticle[@featureedImage]"/>
I am trying to select these "featuredImage" 's and put them in a slideshow.
Hi Steve,
Properties get their own element in the XML - e.g.:
(Shorten a lot - but the general idea should be clear)
So when you've successfully located the NewsArticle you just add /featuredImage to get that - @ is used for the attributes (e.g. @isDoc, @id etc.)
That's one thing - the other thing is that you're only searching along the ancestor axis of the current page, which might not be enough - you might want to locate a common ancestor first, and then go down that one to select the NewsArticles - something like this:
/Chriztian
Chriztian,
Thanks! but I am still very new to Umbraco and xslt/xpath. How would the xsl tag look to refrence the "NewsArticle" if the folder is located at "Content/Home Page/News/Alumni/2012" under the Umbraco content section? I would greatly appreaciate this help as it would help me better understand xslt.
is working on a reply...