Copied to clipboard

Flag this post as spam?

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


  • Pontus Olofsson 5 posts 24 karma points
    Jul 30, 2009 @ 00:38
    Pontus Olofsson
    0

    public document archive

    Hi

    Is it possible to create a public document archive, a page which is mirroring a media foler.

    Where do i begin? Tutorial?

    Ant help is great!

    Version 4 and ASP.NET 3.5

    Thx

  • Aaron Powell 1708 posts 3046 karma points c-trib
    Jul 30, 2009 @ 00:55
    Aaron Powell
    0

    Do you actually want to expose the entire media tree, part of the media tree or just a hierachical list of items (which may or may not be pulled from the Media application)?

  • Pontus Olofsson 5 posts 24 karma points
    Aug 07, 2009 @ 22:48
    Pontus Olofsson
    0

    I want to display part /folder of the media section on the public page... like a file explorer... folders & files.

  • Douglas Robar 3570 posts 4711 karma points MVP ∞ admin c-trib
    Aug 08, 2009 @ 00:23
    Douglas Robar
    1

    The umbraco.library's GetMedia() function is what you're looking for. It is available from an XSLT macro as well as from .net macros.

    cheers,
    doug.

  • Dirk De Grave 4541 posts 6021 karma points MVP 3x admin c-trib
    Aug 08, 2009 @ 00:34
    Dirk De Grave
    1

    Agree with Douglas, but... be aware of performance if you have zillions of media nodes in the media section... as this will affect performance significantly...

    Media nodes are being populated from db for each GetMedia() call...

    Cheers,

    /Dirk

  • Chris Koiak 700 posts 2626 karma points
    Aug 08, 2009 @ 08:20
    Chris Koiak
    0

    You could create the 'document library' in the content section of the site. Depending the type of document (pdf, etc) and the amount of meta data required this may be more sensible.

    This will help performance as you don't need to use GetMedia().

    The only down side I can see is that you can't add them directly into the RTE as images.

  • Tommy Poulsen 514 posts 708 karma points
    Aug 08, 2009 @ 08:36
    Tommy Poulsen
    0

    I present a media folder (with subfolders) to the users of one of my sites - you can see an example (in danish) here. The xslt code is basically as described here, but added some query-string parsing. If you are interested I can send you the full source.

    >Tommy

     

Please Sign in or register to post replies

Write your reply to:

Draft