Copied to clipboard

Flag this post as spam?

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


  • Paul Sørensen 304 posts 650 karma points
    Nov 28, 2009 @ 11:39
    Paul Sørensen
    0

    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:

    • Aug 2009
    • Sept. 2009
    • Oct. 2009

    etc.

    How do I upload and store the PDF files?

    Any ideas or examples of how to get started?

    Thanks
    Paul S

     

  • Chris Houston 535 posts 980 karma points MVP admin c-trib
    Nov 28, 2009 @ 11:43
    Chris Houston
    0

    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

  • Dirk De Grave 4541 posts 6021 karma points MVP 3x admin c-trib
    Nov 28, 2009 @ 17:37
    Dirk De Grave
    0

    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

  • Steven Howard 5 posts 25 karma points
    Jan 13, 2010 @ 16:42
    Steven Howard
    0

    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

  • dandrayne 1138 posts 2262 karma points
    Jan 13, 2010 @ 17:25
    dandrayne
    0

    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

Please Sign in or register to post replies

Write your reply to:

Draft