I don't have any dropdown. My xslt should look all the nodes and retrieve subject choosen in a checkbox list. Then, For each subjects, display nodes corresponding to the subject.
For now, my workaround is to write by hand each subject and to do a for-each. But I have 30 mores subject, so it's why I'd like to get subject automaticly.
For-each but just one...
Hi guys,I'm using 4.7 and I have trouble to do what I want.
I have nodes and "subject" property which is a checkbox datatype
node 1 xMath French Science
node 2 xMath French xScience
node 3 Math xFrench Science
I'd like to display each each subject than each node with the subject.
for-each "subject"
value-of select="subject"
for-each node within the "subject"
value-of select="@nodename"
/for-each
/for-each
But I don't know how to get only the subject.
Thnak you for your help and advices!
Hi Profiterole
What does the XML returned by your dropdownlist property look like? I think that is step one to make sure how to fetch the values you're after.
In order to make sure the subject is only displayed once you should probably look into the muenchian method, which Tommy Poulsen is explaining a bit about here. http://blackpoint.dk/umbraco-workbench/xslt/grouping--distinct-values.aspx?p=3
Also try googling "muenchian grouping umbraco" then you'll find some posts where the XSLT wizard of Umbraco (and other CMS') Chriztian Steinmeier is doing some good explaining and examples. For instance in this one: http://our.umbraco.org/forum/developers/xslt/14952-Grouping-Using-the-Muenchian-Problem
Hope these pointers help a bit :)
/Jan
I don't have any dropdown. My xslt should look all the nodes and retrieve subject choosen in a checkbox list. Then, For each subjects, display nodes corresponding to the subject.
For now, my workaround is to write by hand each subject and to do a for-each. But I have 30 mores subject, so it's why I'd like to get subject automaticly.
I'll take a look at your link. Thank you
is working on a reply...