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
im trying to link to a pdf file thats asscoaited with a page... the file is in the media area....
whereas a url link ie part of the page property is like this - <a href="@Model.Content.GetPropertyValue("link")" target="@linkTarget">
i cant seem to access a media file link
I think you are looking for something like this?
<a href="@Umbraco.TypedMedia(Model.Content.GetPropertyValue("link")).Url" target="@linkTarget">
great thanks. i was looking for getmedia, maybe found an old link
Np, UmbracoHelper is documented here
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
linking to a document
im trying to link to a pdf file thats asscoaited with a page... the file is in the media area....
whereas a url link ie part of the page property is like this - <a href="@Model.Content.GetPropertyValue("link")" target="@linkTarget">
i cant seem to access a media file link
I think you are looking for something like this?
great thanks. i was looking for getmedia, maybe found an old link
Np, UmbracoHelper is documented here
is working on a reply...