@nodeName displays fine but date and title do not display at all, as if they were empty but they aren't. I want to sort by the date field specifically and I tried the old way and the new way and neither seem to be working. Does anyone have any experience with the same issue?
The code should get the latest NewPage documenttype in any folder and place it in a list. The latest item will be decided by the date field rather than @createDate because i had to import all these files so all the files are displayed by an arbitrary date of some time last week.
No change to the content and i am double checking to make sure the document type has a date and title property and it does. It's weird because I did other XSLTs before but they requested information from the currentnode and they had no issues.
i didnt know current was a function. i might try that in a future item and see if it works but for now i just did the datatable thing. i wish there was another way to mark this forum post as something other than solved... like not solvable or no longer an issue so i will just mark the last message as the solved one
Get Nodes sorted by property in for-each loop
I am having an issue with the XSLT properties selection in the latest download of umbraco
here is my code:
@nodeName displays fine but date and title do not display at all, as if they were empty but they aren't. I want to sort by the date field specifically and I tried the old way and the new way and neither seem to be working. Does anyone have any experience with the same issue?
The code should get the latest NewPage documenttype in any folder and place it in a list. The latest item will be decided by the date field rather than @createDate because i had to import all these files so all the files are displayed by an arbitrary date of some time last week.
Hi mfeola,
Try this:
The data[@alias = 'PROPERTY_ALIAS'] was the old way of doing it.
/Chriztian
No change to the content and i am double checking to make sure the document type has a date and title property and it does. It's weird because I did other XSLTs before but they requested information from the currentnode and they had no issues.
bah, i went ahead and just created a c# user control instead
i added the date and id to a datatable, sorted that, and displayed that information. it that works fine.
You could try
or
failing that have a look at your /app_data/umbraco.config file to see how the values were stored
i didnt know current was a function. i might try that in a future item and see if it works but for now i just did the datatable thing. i wish there was another way to mark this forum post as something other than solved... like not solvable or no longer an issue so i will just mark the last message as the solved one
is working on a reply...