If anyone has already built a checkboxlist prevalue editor (as opposed to the property-editor), and is willing to share it... that would be hugely appreciated.
It's 2 years after you published this, but I have just found it today and it has solved a curly issue I have been mulling over for a rebuild of my partners site.
I was wanting a way to be able to set multiple css classes on a row, so this option is a perfect idea / solution to setting classes.
Grid Settings: CheckboxList PreValueEditor?
Has anyone made, or know how to make a CheckboxList PreValueEditor?
I'd like to use one for the Grid settings, (I've checked the docs, but there isn't one).
Another thread mentions the need for one, but nothing seems to have come of it.
If anyone has already built a checkboxlist prevalue editor (as opposed to the property-editor), and is willing to share it... that would be hugely appreciated.
Thank you,
- Lee
I have made one that works like a charm. Heres the code.
Javascript: http://pastebin.com/uCPSXwnB
Html: http://pastebin.com/sMCeycvg
Settings: http://pastebin.com/vptcQb10
EDIT: Stylesheet: http://pastebin.com/FNT9PxXB
EDIT 2: I changed the settings file. Took the wrong one. They look so much alike.
It looks like this in action
Heres another settings for it, where it adds one or more classes depending on the checked values: http://pastebin.com/TNuhBcP7
Thanks Rune, that is very very much appreciated! #h5yr
Cheers,
- Lee
Hi Rune,
This looks great. As one of those designer types, where do I drop those files within Umbraco?
Thanks
Martin
The files (html, javascript and stylesheet) should be placed in a folder in your App_Plugins folder. It's much like creating a new editor like here: https://our.umbraco.org/documentation/getting-started/backoffice/property-editors/built-in-property-editors/Grid-Layout/build-your-own-editor
Make sure you add a package.manifest file, as the guide says.
After that you add the settings part of my example to the Grid layout data type you are using on the page.
More specific you can both use it on the "Settings" and/or "Styles" part of the Grid layout.
Read more about that in general here: https://our.umbraco.org/documentation/getting-started/backoffice/property-editors/built-in-property-editors/Grid-Layout/Settings-and-styles
Hi Rune
It's 2 years after you published this, but I have just found it today and it has solved a curly issue I have been mulling over for a rebuild of my partners site.
I was wanting a way to be able to set multiple css classes on a row, so this option is a perfect idea / solution to setting classes.
Thanks heaps for sharing
Nigel
Cheers :)
Hi Rune, Brilliant. Got it working. Thanks.
Martin.
That's fantastic. It's a pretty nifty little editor if I should say so myself.
is working on a reply...