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)?
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...
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.
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.
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
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)?
I want to display part /folder of the media section on the public page... like a file explorer... folders & files.
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.
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
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.
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
is working on a reply...