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
HI,
I have implement uComponents URL Picker datatype to store one url on a document type (hotel item)
the alias of the property is "hotelWebsite".
A stored url look like this in the umbraco.config file:
<hotelWebsite>
<url-picker mode="URL">
<new-window>False</new-window>
<node-id />
<url>http://www.novotel.com/gb/hotel-0840-novotel-gent-centrum/index.shtml</url>;
<link-title />
</url-picker>
</hotelWebsite>
I tried to access the 'url' value from my hotellist.cshtml Razorscript like this:
'hotel.hotelWebsite.urlpicker.url' but this doesn't work.
Anyone an idea how I can access the URL Picker url value?
Thanks for your help,
Anthony
found it:
@hotel.hotelWebsite.Url
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
how to acces uComponents URL Picker value from Razor script
HI,
I have implement uComponents URL Picker datatype to store one url on a document type (hotel item)
the alias of the property is "hotelWebsite".
A stored url look like this in the umbraco.config file:
<hotelWebsite>
<url-picker mode="URL">
<new-window>False</new-window>
<node-id />
<url>http://www.novotel.com/gb/hotel-0840-novotel-gent-centrum/index.shtml</url>;
<link-title />
</url-picker>
</hotelWebsite>
I tried to access the 'url' value from my hotellist.cshtml Razorscript like this:
'hotel.hotelWebsite.urlpicker.url' but this doesn't work.
Anyone an idea how I can access the URL Picker url value?
Thanks for your help,
Anthony
found it:
@hotel.hotelWebsite.Url
is working on a reply...