Copied to clipboard

Flag this post as spam?

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


  • manwood 87 posts 109 karma points
    Mar 29, 2010 @ 12:40
    manwood
    0

    How do you provide conent for download via umbraco?

    I want my site admins to be able to upload documents that front-end users can then download - what is the right approach? is there a datatype for this?

     

    Thanks

  • Dan 1288 posts 3942 karma points c-trib
    Mar 29, 2010 @ 12:46
    Dan
    0

    Hi Manwood - just upload the files into the media folder and then link to them via standard hyperlinks in a richtext editor.

  • manwood 87 posts 109 karma points
    Mar 29, 2010 @ 12:51
    manwood
    0

    Hi Dan

    I'm not sure I fully understand your answer, or I didnt make my problem clear enough.

    I need site admins to have the ability to create new items of content for publishing that consist of some text, a title and an actual file that website users can download. The site admins will be working through the umbraco interface (not FTP or via any kind of back end tools). So the document type needs some kind of upload (for the file), but this file needs to be rendered as a link to download when the document is published.

    Does that make sense?

  • Kim Andersen 1447 posts 2197 karma points MVP
    Mar 29, 2010 @ 13:36
    Kim Andersen
    0

    You can put a property on your document type with a datatype of "upload". With this datatype, the administrators can upload a file. This is only if you don't want the administrators to go through the media library, and upload the file first.

    But when you want to render a link to the uploaded file, you need to code this into your template/XSLT/.NET whatever you prefer. I usually use XSLT to render all of my content, and would also use XSLT to render a link to the uploaded file.

    /Kim A

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies