I have some magazines in PDF format which I would like to give users access to on my site. That should be done by creating a list of links to the PDF files. There is a new magazine each month so it should be possible to extend the list. The list of links would be something like this:
You can create a section in the Media section to store all your PDF documents and the create an XSLT macro that displays links to these. If you have a look at the sample gallery XSLT that should get you started, obviously you will need to modify it to provide links to download the PDF's instead of displaying thumbnails.
Be aware tho that using the solution Chris is suggesting, you'll be hitting the database quite heavily and it may affect performance. Every call to GetMedia() will hit the database. Even worse is a recursive GetMedia call (2nd parameter = true) which will hit the database for each media item that's found recursively. So handle with care!
Like Paul I want to create document libraries for newsletters and other publications in different sections of my site and I'm having difficulty working how to implement a best practice solution. Is there a better method than the way Chris suggests? An idiots guide would be best for a newbie like me.
Creating a list of PDF files
Hi
I have some magazines in PDF format which I would like to give users access to on my site. That should be done by creating a list of links to the PDF files. There is a new magazine each month so it should be possible to extend the list. The list of links would be something like this:
etc.
How do I upload and store the PDF files?
Any ideas or examples of how to get started?
Thanks
Paul S
Hi Paul,
You can create a section in the Media section to store all your PDF documents and the create an XSLT macro that displays links to these. If you have a look at the sample gallery XSLT that should get you started, obviously you will need to modify it to provide links to download the PDF's instead of displaying thumbnails.
Cheers,
Chris
Paul,
Be aware tho that using the solution Chris is suggesting, you'll be hitting the database quite heavily and it may affect performance. Every call to GetMedia() will hit the database. Even worse is a recursive GetMedia call (2nd parameter = true) which will hit the database for each media item that's found recursively. So handle with care!
Cheers,
/Dirk
Hi Dirk,
Like Paul I want to create document libraries for newsletters and other publications in different sections of my site and I'm having difficulty working how to implement a best practice solution. Is there a better method than the way Chris suggests? An idiots guide would be best for a newbie like me.
Many thanks
Steve
Hi Folks
This might help you out -> http://our.umbraco.org/forum/using/ui-questions/5550-best-practice-for-listing-download-files?p=0
Although still worth taking note of Dirk's warning.
Dan
is working on a reply...