Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Anthony Candaele 1197 posts 2049 karma points
    Feb 06, 2013 @ 10:37
    Anthony Candaele
    0

    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

  • Anthony Candaele 1197 posts 2049 karma points
    Feb 06, 2013 @ 11:03
    Anthony Candaele
    101

    found it:

    @hotel.hotelWebsite.Url

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies