Also, I'm sure you are aware, this won't actualy display anthing as you are generating a self closing a tag, but it should at least get you the correct URL. You may be better of with something like.
<a href='<umbraco:Itemrunat="server"field="productDownload" xslt="umbraco.library:GetMedia({0},'false')/umbracoFile" />'>Your Link Text Here</a>
@Matt Ahh i get it, I thought //umbracoFile was suppose to be my field name for the download. No wonder it wasn't working. i did noticed it was self closing and had changed it after I did the post. Thanks.
@Tim my bad, it works I just didn't realise //umbracoFile was actually needed. THanks for the help
get a link using inline xslt
Hi, I'm trying to show a link using inline xslt in a template i have using the below
But is not showing up. I'm using 4.5.1 and trying to generate a link to download aproduct pdf.
Comment author was deleted
try
umbraco.library:GetMedia({0},'false')//umbracoFile
Hi Tim,
so basicall this:
It generates the a tag but not the link :(
Hi Ivor,
It needs to be specificaly umbracoFile so
Also, I'm sure you are aware, this won't actualy display anthing as you are generating a self closing a tag, but it should at least get you the correct URL. You may be better of with something like.
Matt
Comment author was deleted
did you try ?
Since the getmedia call will return some xml and in that xml is an umbracoFile node that contains the path to the file
@Matt Ahh i get it, I thought //umbracoFile was suppose to be my field name for the download. No wonder it wasn't working. i did noticed it was self closing and had changed it after I did the post. Thanks.
@Tim my bad, it works I just didn't realise //umbracoFile was actually needed. THanks for the help
Oh my - greatly appreciated! :)
Virtual high-five! Been spending hours looking for something like this.
is working on a reply...