As i suspected it didn't work. I just get an empty space now. With <textarea> i can see that i get the path and the bytesize following immediately, so i think the path needs to be seperated or?
Are you using <xsl:value-of/> to put the results in the textarea? That will only give you the textual contents of the results. Use <xsl:copy-of/> to copy the entire XML structure into the textarea.
Bob Baty-Barr's reply is actually correct, although a bit verbose in using a variable.
GetMedia New Schema - Images from static folder
Hi there
Been looking for a quick solution to this, but couldn't find any.
I use the following XSLT to display header images from a folder, specified by a Media Picker property.
What do i need to change in order to ditch the media picker and set a static folder id?
I tried removing the media variable and setting the 1109 id in the getMedia call, but then nothing gets displayed? :/
Thanks in advance.
you should be able to set the variable media = to your node id...
i think that should work...
I'm pretty sure i did just that, but i'll have to re-check.
Thanks for helping out!
Hi Bob
As i suspected it didn't work. I just get an empty space now. With <textarea> i can see that i get the path and the bytesize following immediately, so i think the path needs to be seperated or?
Are you using <xsl:value-of/> to put the results in the textarea? That will only give you the textual contents of the results. Use <xsl:copy-of/> to copy the entire XML structure into the textarea.
Bob Baty-Barr's reply is actually correct, although a bit verbose in using a variable.
Oh ok! I'll give it a go.
I seriously need to pick up a book on xslt somewhere :-)
is working on a reply...