When defining a data type generally, you can specify the start node and filter options, however I can't see how to do that for the Grid.
I'm trying to do this because there doesn't seem to be a way of specifying separate keys and values for radio buttons, but I'd definitely go that way that is an option.
I've tried a few things, which I've pasted below, but if somebody could tell me the correct way to configure that I'd be grateful:
So I solved this one for me. It turns out that the treepicker isn't configurable, so I went with the other option I was looking for but couldn't find: allowing separate keys and values for radio buttons.
To do this, simply specify the prevalues in the grid configuration as objects in an array rather than strings, e.g.:
I then found that the radiobuttonlist option uses the radiobuttonlist.html file in the source, which I modified to use the properties of the object in each array element. I created a new file, referenced in the snippet above, that contained the following code:
Configuring treepicker editor in Grid settings
It says here: https://our.umbraco.org/documentation/using-umbraco/backoffice-overview/property-editors/built-in-property-editors-v7/grid-layout#Configuringacustomsettingorstyle that you can specify treepicker as a valid value for the "view" parameter, however it doesn't specify how to configure it.
When defining a data type generally, you can specify the start node and filter options, however I can't see how to do that for the Grid.
I'm trying to do this because there doesn't seem to be a way of specifying separate keys and values for radio buttons, but I'd definitely go that way that is an option.
I've tried a few things, which I've pasted below, but if somebody could tell me the correct way to configure that I'd be grateful:
Attempt #1:
Attempt #2:
Anyone?
Hi all,
So I solved this one for me. It turns out that the treepicker isn't configurable, so I went with the other option I was looking for but couldn't find: allowing separate keys and values for radio buttons.
To do this, simply specify the prevalues in the grid configuration as objects in an array rather than strings, e.g.:
I then found that the radiobuttonlist option uses the radiobuttonlist.html file in the source, which I modified to use the properties of the object in each array element. I created a new file, referenced in the snippet above, that contained the following code:
Hope this helps someone out there!
is working on a reply...