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?
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.
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.
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
Hi Manwood - just upload the files into the media folder and then link to them via standard hyperlinks in a richtext editor.
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?
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
is working on a reply...
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.