Possibly... date as a data-attribute on the LI items, and then sort them via jscript onchange of the select. You'll find lots of examples on the interwebs.
Perfect, thank you. This has been wracking my head for the past day now. I was trying to find a solution using the razor syntax and went down a rabbit hole.
ordering child nodes in parent by user dropdown selection umbraco
I am attempting to organise a blog list page by a user dropdown selection (either ascending or descending order based on datePublished value).
I have managed to render the child nodes in descending order but I can't think of how best to solve this problem.
I have reduced the code to keep it simple but any help would be greatly appreciated.
Possibly... date as a data-attribute on the LI items, and then sort them via jscript onchange of the select. You'll find lots of examples on the interwebs.
Perfect, thank you. This has been wracking my head for the past day now. I was trying to find a solution using the razor syntax and went down a rabbit hole.
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.