Copied to clipboard

Flag this post as spam?

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


  • Mark 15 posts 86 karma points
    Jun 16, 2016 @ 23:41
    Mark
    0

    Have Settings only show up, according to specific grids in the Content Editor

    Hello,

    Question, I want to do this but I am not sure if it is possible, I have to rows for a grid:

    2 column row, and a 3 column row.

    now what I want to do is when you set up your settings, that have css in them like make the Settings only show up for specific rows when placed in a grid in the content editor, is this possible?

    for example:

    [{

    // AND HAVE THIS SETTINGS OPTIONS ONLY SHOW IN THE 3 COLUMN ROW WITHIN THE CONTENT EDITOR

    "label": "use on grid with a 3 column row ONLY”,
    "description": " Select this for '3 column row':",
    "key": "class",
    "view": "radiobuttonlist",
    "prevalues": [
      "section-row nice-stuff"
    ],
    "applyTo": "row"
    

    }, {

    // AND HAVE THIS SETTINGS OPTION ONLY SHOW UP IN THE 2 COLUMN ROW IN THE CONTENT EDITOR

    "label": "use on grid with a 2 column row ONLY”,
    "description": "Select this style for the grid rows called '2 column':",
    "key": "class",
    "view": "radiobuttonlist",
    "prevalues": [
      "row-grid section-row other-nice-stuff",
      "row-grid nice-stuff"
    ],
    "applyTo": "row"
    

    }]

    otherwise All the settings with 'row' show up in both the '3 column row', and the '2 column row' and you have a strange set of radio button groups in the Settings selection in the Content Editors area.

    Is this possible, if so this could be a very useful umbraco feature and save a lot of dev time?

Please Sign in or register to post replies

Write your reply to:

Draft