Good to know, but that wasn’t working for me because I had set the Default Value as one of my options. What my client wanted was a way to hide the sidebar content altogether, but I worked around it by making the content area selectable with another TV to be 1-column or 2-column (which changes the site’s CSS).
This seems to work great, but referring back to the point, you can’t unselect TV options if you are using one of those options as a Default Value, right?
That’s correct. If you set a default value, if the TV value is empty it will be replaced by the default value. If you want a default value but also want to be able to set values to blank, then you need to use the method that Ryan describes above (adding a null value to your options for multi-selects, check boxes, etc.).
-
MODX Staff
- 12,272 Posts
If you put multiple values in the default value without the appropriate output widget, you get the results shown in the first post.
Ryan Thrash, MODX Co-Founder
Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
Thanks to all the replies, I understand it a bit better now (after re-reading it a few times). I was thinking that the "default values" area should be a list of options that have already been listed in the "input option values" field, no that it should contain snippet calls and (X)HTML.
Luke.