Don't know if this is me being friday-afternoon-tired, but I can't figure it out.
I am trying to list images from a folder. I have created a folder in the media-section and created Images in it. The folder has ID: 1057. I figured I could use this xslt to list how many images there are in the folder and then eventually loop through the images, but I get stuck here:
[code]
Folder name:
Count:
[/code]
I get the correct name of the folder, but count is always 0, and thus the loop won't work either :)
What have I done wrong? Or have i misunderstood something?
Possibly stupid question regarding Media-items
Don't know if this is me being friday-afternoon-tired, but I can't figure it out.
I am trying to list images from a folder. I have created a folder in the media-section and created Images in it. The folder has ID: 1057. I figured I could use this xslt to list how many images there are in the folder and then eventually loop through the images, but I get stuck here:
[code]
Folder name:
Count:
[/code]
I get the correct name of the folder, but count is always 0, and thus the loop won't work either :)
What have I done wrong? Or have i misunderstood something?
You can do like this:
[code]
[/code]
Cheers
The exact same count works on my site - are you sure about the ID?
Tried creating a fresh install using Darren's utility (great by the way). But I get the same result on it.
I have the site at http://umbraco-trial-34.darren-ferguson.com/
The macro is added at the bottom.
I got this running right now... (the 'eventImageRoot is a property on my doctype):
[code]
Billeder
Thanks tommy. I found what was causing it.
Mine looked like this:
should be
or
are you supposed to put '' around booleans when calling from XSLT?
is working on a reply...