Make Settings only show up, according to specific grids
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
"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 they both 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.
Is this possible, if so this could be a very useful umbraco feature and save a lot of dev time?
Surely there's an easier way - couldn't the css just be output with row specific classes like 'g-row-2-col' for a 2 column row and 'g-row-3-col' for a 3 column row, etc.... and then you can just target css accordingly.
Make Settings only show up, according to specific grids
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:
otherwise they both 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.
Is this possible, if so this could be a very useful umbraco feature and save a lot of dev time?
Surely there's an easier way - couldn't the css just be output with row specific classes like 'g-row-2-col' for a 2 column row and 'g-row-3-col' for a 3 column row, etc.... and then you can just target css accordingly.
is working on a reply...