Copied to clipboard

Flag this post as spam?

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


  • Mehul Gajjar 48 posts 172 karma points
    May 06, 2015 @ 10:05
    Mehul Gajjar
    0

    How to set color picker in umbraco 7.2.4

    Hi,

    I am using umbraoc 7.2.4

    i want to use below like color picker

    enter image description here

    can any one used same then please share your thoughts.

    Regards,

    Mehul Gajjar.

  • Dennis Aaen 4500 posts 18255 karma points admin hq c-trib
    May 06, 2015 @ 10:19
    Dennis Aaen
    0

    Hi Mehul, 

    Perhaps you could use the Approved Color data type where you can define some colors, and then your content users can choose between the colors that you have set up on the Approved Color data type.

    Try to see this documentation. https://our.umbraco.org/documentation/using-umbraco/backoffice-overview/property-editors/Built-in-Property-Editors/Color-Picker this documentation uses the Umbraco 4/6 UI but the setup should be the same in Umbraco 7.

    When you need to get data out in Razor you can use @CurrentPage.PropertyAlias of the color picker for the dynamic version and for the strongly typed Razor example, I think it should look something like this @Model.Content.GetPropertyValue<string>("PropertyAlias")

    Hope this can be a solution for you.

    /Dennis

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    May 06, 2015 @ 10:19
    Jan Skovgaard
    102

    Hi Mehul

    The color picker you have referenced is that something you have found in an external jquery library or where is it from? It should be possible to make a custom property editor, which makes it possible to pick the color - But perhaps you can just use the already created spectrum color picker? https://our.umbraco.org/projects/backoffice-extensions/spectrum-colour-picker

    /Jan

  • Mehul Gajjar 48 posts 172 karma points
    May 06, 2015 @ 12:32
    Mehul Gajjar
    0

    Hi Jan,

    I have install this package and its working fine.

    https://our.umbraco.org/projects/backoffice-extensions/spectrum-colour-picker

    it is very clean and easy to get color code.

    Thanks

    Mehul Gajjar.

  • 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