I have a xslt script that I need to first test to see if there is a value in the property newsZones (which is selected by a multi-node content picker), and then select all the NewsArticles that have that property and list them if the value for newsZones is of the $currentPage. I don't know how to pull the value of the property newsZones or test it against the $currentPage. Suggestions?
<xsl:variable name="sidebarArticles" select="$category/descendant-or-self::NewsArticle[string(umbracoNaviHide) != '1' and string(@id) != string($currentPage/featuredArticle) or newsZones/MultiNodePicker/nodeId = ($currentPage/ancestor-or-self::*/@id) ]" />
I'd love to help you out but I can't really follow how your exact setup is, so could maybe explain a little more about how your Content tree is built; where the newsZones property is located, and how the featuredArticles property is supposed to work?
Ok Chriztian, as the script is now, the doctype NewsArticle contains the property newsZones which is a multi-node picker. The News articles are displayed in a feed from a newsFeed macro based on what nodes are selected using the multi-node picker in the NewsArticle. The featuredArticles property is a check box within the NewsArticle which also impacts how the article is displayed within the newsFeed. The featuredArticles will display in the newsFeed while any other NewsArticle will display in another section "sidebarArticles" which are determined by the multi-node picker. I would like to pull the articles from any news article folder, not just the children of the NewsCatagory node as well.
Below is the xslt used for the feed:
You can see one of the pages with the NewsArticles here:
Select Property from a Multi-Node Picker
I have a xslt script that I need to first test to see if there is a value in the property newsZones (which is selected by a multi-node content picker), and then select all the NewsArticles that have that property and list them if the value for newsZones is of the $currentPage. I don't know how to pull the value of the property newsZones or test it against the $currentPage. Suggestions?
Hi Steve,
I'd love to help you out but I can't really follow how your exact setup is, so could maybe explain a little more about how your Content tree is built; where the newsZones property is located, and how the featuredArticles property is supposed to work?
/Chriztian
Ok Chriztian, as the script is now, the doctype NewsArticle contains the property newsZones which is a multi-node picker. The News articles are displayed in a feed from a newsFeed macro based on what nodes are selected using the multi-node picker in the NewsArticle. The featuredArticles property is a check box within the NewsArticle which also impacts how the article is displayed within the newsFeed. The featuredArticles will display in the newsFeed while any other NewsArticle will display in another section "sidebarArticles" which are determined by the multi-node picker. I would like to pull the articles from any news article folder, not just the children of the NewsCatagory node as well.
Below is the xslt used for the feed:
You can see one of the pages with the NewsArticles here:
http://www.rose-hulman.edu/news/on-campus.aspx
is working on a reply...