Copied to clipboard

Flag this post as spam?

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


  • Rihab 68 posts 269 karma points
    Jul 04, 2018 @ 13:05
    Rihab
    0

    hi everyone,

    i'm trying to change the property editor in the design tab at the home page from radio button to dropdown list. and i need to continue using it the same way as the old datatype "radio button" like this

    var colorTheme = Umbraco.GetPreValueAsString(home.ColorTheme);

    can any one help me?

  • Dennis Aaen 4431 posts 17864 karma points admin hq c-trib
    Jul 04, 2018 @ 14:04
    Dennis Aaen
    100

    Hi there and welcome to our.

    You should do something like this.

    var colorTheme =  home.GetPropertyValue<string>("colorTheme")
    

    Hope this helps,

    /Dennis

Please Sign in or register to post replies

Write your reply to:

Draft