Copied to clipboard

Flag this post as spam?

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


  • Ciprian 17 posts 38 karma points
    Sep 24, 2010 @ 09:28
    Ciprian
    0

    Navigating Media folder

    Hey guys,

    I'd like to know if there is any way to navigate the media folder without having the id of any media node.

    What I'm trying to do is create albums (media type that I defined) which have photos as children.

    I'd like to display all albums on a page without knowing their ids beforehand. And then be able to display their children.

    Is that even remotely possible?

    Thanks,

    Ciprian

  • Ciprian 17 posts 38 karma points
    Sep 24, 2010 @ 10:16
    Ciprian
    0

    I think I found a solution:

    I'll put everything in the media folder under a folder item and remember it's id. Then use umbraco.library:GetMedia(folder_id,1)

    The 1 makes it go deep and return all the nodes childen. In effect I'll have the entire xml of the media folder wich will be searchable with xpath and everything else.

    Ciprian

Please Sign in or register to post replies

Write your reply to:

Draft