I apologize for what may be a very simple question, but I'm putting together a fairly simple site. I have created a "downloads" folder under the media folder and the idea was to place some pdf forms under this folder. I would like to link to these files from within my pages. What is the best way too accomplish this?
I was hoping there would be an equivelant to this feature: <umbraco:Macro Alias="Navigation" runat="server"></umbraco:Macro>
And I would just change the tags around and it would automatically generate a link to my file for me.
If you have uploaded the files through the media section in the backoffice then it could not be easier:
In you rich text editor, there's a button to insert links. Go to the media tab and pick the correct file.
Also, if you don't want to link the files from within the editor, you could choose to have a media picker on your document type and choose the correct file there. In your template it's a little bit tricky, as you can read in this wiki page.
In your XSLT you could link to it like this (if you give the media picker an alias of "pdfFile":
Thank you very much for the reply and the answer. I normally don't use WSYWYG editors, so I never even looked at using it. But really it's pretty straight forward.
Referencing Media Files
All,
I apologize for what may be a very simple question, but I'm putting together a fairly simple site. I have created a "downloads" folder under the media folder and the idea was to place some pdf forms under this folder. I would like to link to these files from within my pages. What is the best way too accomplish this?
I was hoping there would be an equivelant to this feature: <umbraco:Macro Alias="Navigation" runat="server"></umbraco:Macro>
And I would just change the tags around and it would automatically generate a link to my file for me.
Thanks for taking the time to answer my question.
- e r i c
If you have uploaded the files through the media section in the backoffice then it could not be easier:
In you rich text editor, there's a button to insert links. Go to the media tab and pick the correct file.
Also, if you don't want to link the files from within the editor, you could choose to have a media picker on your document type and choose the correct file there. In your template it's a little bit tricky, as you can read in this wiki page.
In your XSLT you could link to it like this (if you give the media picker an alias of "pdfFile":
Thank you very much for the reply and the answer. I normally don't use WSYWYG editors, so I never even looked at using it. But really it's pretty straight forward.
What if after build the link I decide change the document version?
Actually, If I do that, the page stills points to the old document name. How can I update automatically the link reference if I change the media Node?
Thanks
is working on a reply...