if memory serves well (it's been a long and tiring day) the GetPreValue functions are aimed at the datatypes that you manually add entries to (ie. dropdown, checkbox, dropdown multiple). The Ultimate Picker works differently.
The value saved by the Ultimate Picker checkbox list is a comma seperated list of node IDs. Those node IDs are the ones you'll find underneath the parent node you've set up for your Ultimate Picker datatype. So basically you could filter the resultset of that particular parent node on the IDs that were checked and saved.
Here's a rough idea of how I think you could go about it. Following code is not tested and just to give you an idea of the general outline.
<xsl:variable name="sportsCollection" select="xpath to select your parent node used to populate Ultimate Picker"/> <xsl:variable name="checkedSports" select="umbraco.library:Split(ultimatePickerAlias, ',')" /> <ul> <xsl:for-each select="checkedSports//value"> <li> <xsl:value-of select="sportsCollection/node[@id=.]/@nodeName" /> </li> </xsl:for-each> </ul>
Ultimate Picker CheckBoxList
I am at the moment trying to get the selected 'names' from the items selected for each sub-page of a node.
Using the XSLT below I am able to get the node ID but do not seem to be able to get the name (i.e. I am seeing 1124 rather than soccer).
What I am missing and where do I need to look (I have tried GetPreValueAsString, but this is throwing and XSLT error)?
Thanking you in advance.
TT
Hi TT,
if memory serves well (it's been a long and tiring day) the GetPreValue functions are aimed at the datatypes that you manually add entries to (ie. dropdown, checkbox, dropdown multiple). The Ultimate Picker works differently.
The value saved by the Ultimate Picker checkbox list is a comma seperated list of node IDs. Those node IDs are the ones you'll find underneath the parent node you've set up for your Ultimate Picker datatype. So basically you could filter the resultset of that particular parent node on the IDs that were checked and saved.
Here's a rough idea of how I think you could go about it. Following code is not tested and just to give you an idea of the general outline.
Hi Bjorn
Thank you for your reply.
I do not know how, but this got posted twice.
I finally used the answer here.
http://our.umbraco.org/forum/developers/xslt/10690-Ultimate-Picker-CheckBoxList ;
Many thanks.
TT
is working on a reply...