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
Since upgrading to 4.6.1 from 4.0.4 links return from umbraco.library.NiceUrl for media are returning #.
I have republished the site which seem to only fix the pages.
I wouldn't usually use niceUrl for media. For images try something like:
or for files (eg PDF's):
<img alt="{@nodeName}" src="{umbraco.library:GetMedia(./ahProductBoxImage, 'false')/image/umbracoFile}" />
<a href="{umbraco.library:GetMedia(./ahProductBoxImage, 'false')/file/umbracoFile}" ><xsl:value-of select="@nodeName" /></a>
Hi Ben
Could you please provide us with your code that you're currently using to render the links?
/Kim A
@Kim
Here the is code:
XPathNodeIterator ni = umbraco.library.GetMedia(nodeID, false);string url = ""; XPathNodeIterator xn = current.Select("/File/umbracoFile"); while (xn.MoveNext()){ url = xn.Current.Value; }
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
4.6.1 NiceUrl returning # for media
Since upgrading to 4.6.1 from 4.0.4 links return from umbraco.library.NiceUrl for media are returning #.
I have republished the site which seem to only fix the pages.
I wouldn't usually use niceUrl for media. For images try something like:
or for files (eg PDF's):
I wouldn't usually use niceUrl for media. For images try something like:
<img alt="{@nodeName}" src="{umbraco.library:GetMedia(./ahProductBoxImage, 'false')/image/umbracoFile}" />
or for files (eg PDF's):
<a href="{umbraco.library:GetMedia(./ahProductBoxImage, 'false')/file/umbracoFile}" ><xsl:value-of select="@nodeName" /></a>
Hi Ben
Could you please provide us with your code that you're currently using to render the links?
/Kim A
@Kim
Here the is code:
is working on a reply...