Copied to clipboard

Flag this post as spam?

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


  • K.Garrein 164 posts 629 karma points
    Aug 20, 2018 @ 08:18
    K.Garrein
    0

    Grid layout style settings not working correctly?

    I'm configuring a background color selection as a style of a grid layout, so editors can pick a specific background color for the cells of their grid layout.

    I'm using a radiobuttonlist with prevalues.

    However Umbraco uses the complete prevalues as value, it doesn't seem to see the label/value json code? And just puts the json code in the rendered HTML.

    Umbraco version = 7.5.3

    This screenshot explains the problem

  • K.Garrein 164 posts 629 karma points
    Aug 20, 2018 @ 11:08
    K.Garrein
    100

    I modified the file radiobuttonlist.html and now it works:

    Umbraco/Views/prevalueeditors/radiobuttonlist.html

    to

    <ul class="unstyled">
    <li ng-repeat="preval in model.prevalues">
    <label class="checkbox">
        <input type="radio" ng-model="model.value" value="{{preval.value}}" /> {{preval.label}}
    </label>
    </li>
    

Please Sign in or register to post replies

Write your reply to:

Draft