I guess the answer depends - The code snippet above...is there anymore to it? Are you looping through something or are you assigning the model to a variable called subpage?
Are you working with a macro or directly in the view file? If so you could perhaps use @Umbraco.Field("externalRedirectUrl")
url query
how can i get the url from a page property. the property is an external weblink which i just want to have as a link
<a href="@subpage.GetProperty("externalRedirectUrl")">@subpage.Name</a>
treid .Value and .Url but neither work....
Hi Mark
I guess the answer depends - The code snippet above...is there anymore to it? Are you looping through something or are you assigning the model to a variable called subpage?
Are you working with a macro or directly in the view file? If so you could perhaps use
@Umbraco.Field("externalRedirectUrl")
Looking forward to hearing from you.
/Jan
Hi Mark,
What if you do it like this: What data type are you using for this type of field?
<a href="@subpage.GetPropertyValue("externalRedirectUrl").Url">@subpage.Name</a>
Hope this helps,
/Dennis
is working on a reply...