I have been using XPath DropDownList for quite some time but I see it now marked as Legacy. Is there a newer recommended method (in Umbraco 6.x) to display a selection of content nodes in a drop down list?
How do I sort the results? I have this as my XPath Expression and I need to sort so the newest content node is on top.
$currentPage//* [@isDoc and (name()='LegalNewsHeadline' or name()='ArizonaAttorneyNewsCenterArticle') and youtubeEmbedURL !='']
Sorry, still on Umbraco 6.x as we haven't had time to rework the website for Umbraco 7.
I did find the replacement for the uComponents editor, XPath DropDownList. Now, to figure out how to sort the results. Unless I find a better way than making users sift through a thousand items in a dropdown list to indicate the video of the day.
uComponents-Legacy: XPath DropDownList
Two questions.
I have been using XPath DropDownList for quite some time but I see it now marked as Legacy. Is there a newer recommended method (in Umbraco 6.x) to display a selection of content nodes in a drop down list?
How do I sort the results? I have this as my XPath Expression and I need to sort so the newest content node is on top.
$currentPage//* [@isDoc and (name()='LegalNewsHeadline' or name()='ArizonaAttorneyNewsCenterArticle') and youtubeEmbedURL !='']
The equivalent of uComponents in Umbraco 7 is the nuPickers package. This has an XML DropDownList that you can use XPath with.
https://github.com/uComponents/nuPickers/wiki
Sorry, still on Umbraco 6.x as we haven't had time to rework the website for Umbraco 7.
I did find the replacement for the uComponents editor, XPath DropDownList. Now, to figure out how to sort the results. Unless I find a better way than making users sift through a thousand items in a dropdown list to indicate the video of the day.
Hi Connie,
IIRC you can't sort an XPath DropdownList (or any of the other lists like CheckBoxList, CheckBoxTree etc.).
It looks like the XPath Templateable List is able to do it though?
Hope that helps,
/Chriztian
is working on a reply...