Try the below snippet (Note the umbraco.library:GetMedia call instead of umbraco.library:GetXmlNodeById). I have also added a few more conditional checks.
No worries David. Glad I could help! Yep I always check for data :) I free coded it in notepad, so good to know it runs without mods (for anyone else who stumbles across this post).
Media URLs from a Multiple Media Picker list
Hello Umbraco Colleagues,
We have the TreeMultiPicker package installed and used it in a docType to create a list of files (PDFs actually).
Now we need to create a list of links to those PDFs using XSLT - but I can't get it to work.
The name of the property containing the list of files is "documentList"
I'm not getting either the umbracoFile nor the nodeName of each file in the list.
What am I doing wrong?
David Hill
Hi David,
Try the below snippet (Note the umbraco.library:GetMedia call instead of umbraco.library:GetXmlNodeById). I have also added a few more conditional checks.
Cheers,
Neil
Hi Neil,
Thanks for the code - you rock!
It worked flawlessly without modification. I just pasted your code and it does exactly what I need.
I really like how you're testing as you go to make sure there's data.
Thanks so much!
David
No worries David. Glad I could help!
Yep I always check for data :) I free coded it in notepad, so good to know it runs without mods (for anyone else who stumbles across this post).
Cheers,
Neil
is working on a reply...