Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • fed 199 posts 70 karma points
    Feb 06, 2009 @ 14:53
    fed
    0

    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?

  • Scott Hugh Alexandar Petersen 349 posts 164 karma points
    Feb 06, 2009 @ 15:09
    Scott Hugh Alexandar Petersen
    0

    You can do like this:

    [code]

    [/code]

    Cheers

  • Tommy Poulsen 514 posts 708 karma points
    Feb 06, 2009 @ 15:11
    Tommy Poulsen
    0

    The exact same count works on my site - are you sure about the ID?

    Tommy

  • fed 199 posts 70 karma points
    Feb 06, 2009 @ 15:18
    fed
    0

    Tried creating a fresh install using Darren's utility (great by the way). But I get the same result on it.

  • fed 199 posts 70 karma points
    Feb 06, 2009 @ 15:24
    fed
    0

    I have the site at http://umbraco-trial-34.darren-ferguson.com/

    The macro is added at the bottom.

  • Tommy Poulsen 514 posts 708 karma points
    Feb 06, 2009 @ 15:24
    Tommy Poulsen
    0

    I got this running right now... (the 'eventImageRoot is a property on my doctype):

    [code]

    Billeder



  • fed 199 posts 70 karma points
    Feb 06, 2009 @ 15:41
    fed
    0

    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?

Please Sign in or register to post replies

Write your reply to:

Draft