And something similar for Events. However what I would also like to do is list the News Items and Events on the Home page. I am guessing my XSLT for the Home page will be very similar, except with a different select attribute on the xsl:for-each element. But I don't know what I should use!
Any help is greatly appreciated. I apologize if this has been addressed already but I wasn't quite sure what to search on for this topic.
You might think about putting News and Event List under Home in your content tree, since you are pulling content from them into home. Either way you can use the nodeTypeAlias(document type alias) to identify the different elements. The way you have the structure now, the select would look like
Jeff, thanks, I was wrong. News and Events are under Home in my content tree. It took me a while to realize I needed to include MY document type alias in there.
Parsing nodes NOT from currentPage
Hi everyone,
I'm still new to XSL so please have patience. What I am trying to do is set up my content like this:
- Home
- News
-- News Item 1
-- News Item 2
-- News Item 3
- Event List
-- Event 1
-- Event 2
I am able to easily display the News Item nodes on the News page using the following transform:
And something similar for Events. However what I would also like to do is list the News Items and Events on the Home page. I am guessing my XSLT for the Home page will be very similar, except with a different select attribute on the xsl:for-each element. But I don't know what I should use!
Any help is greatly appreciated. I apologize if this has been addressed already but I wasn't quite sure what to search on for this topic.
You might think about putting News and Event List under Home in your content tree, since you are pulling content from them into home. Either way you can use the nodeTypeAlias(document type alias) to identify the different elements. The way you have the structure now, the select would look like
Or if you move it
Have a look at this topc: http://our.umbraco.org/forum/developers/xslt/6817-Get-level-2-pages-within-particular-parents
If I'm not mistaken it is exactly what you're looking for. It sure helped me though.
Thanks guys,
Jeff, thanks, I was wrong. News and Events are under Home in my content tree. It took me a while to realize I needed to include MY document type alias in there.
This worked:
Thanks to Ralph also... learned a lot about the @level property in that post!
is working on a reply...