Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hello,
I have one page in that I have list of all documents. Now I want that on click of any document name That document should get download. I have that documents in media tree node.
Guide me for this.
Thank You,
Dipa
Hi Dipa,
Do you any chance of share you code you have so far, where you are listing all the documents.
Then it´s easier to help you with some specific code example, and guide you in the right direction.
/Dennis
Hi Dennis,
I don't have any code. Just list of documentName with <ul><li> structure using foreach loop.
<ul><li>
Thanks.
Hi Dipa.
What you need to do is to use the .Url https://our.umbraco.org/documentation/Reference/Querying/IPublishedContent/Properties
So if your variable in your foreach loop is var item, then the code would look like this
<a href="@item.Url">@item.Name</a>
Hope this helps,
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Download document
Hello,
I have one page in that I have list of all documents. Now I want that on click of any document name That document should get download. I have that documents in media tree node.
Guide me for this.
Thank You,
Dipa
Hi Dipa,
Do you any chance of share you code you have so far, where you are listing all the documents.
Then it´s easier to help you with some specific code example, and guide you in the right direction.
/Dennis
Hi Dennis,
I don't have any code. Just list of documentName with
<ul><li>
structure using foreach loop.Thanks.
Dipa
Hi Dipa.
What you need to do is to use the .Url https://our.umbraco.org/documentation/Reference/Querying/IPublishedContent/Properties
So if your variable in your foreach loop is var item, then the code would look like this
Hope this helps,
/Dennis
is working on a reply...