-
- 191 Posts
I have two values associated with a MediaCategories TV (Type: Checkbox) - ’Categories’ and ’Featured’ . I have the default text set to ’Categories’, so that this checkbox is automatically checked when a resource is created with a template that utilizes the MediaCategories TV.
Here’s my question. When the user unchecks the ’Categories’ box does this override the default value? If so, how can this information be extracted from a DB query. I’ve noticed that when ’Categories’ is the only box checked no value shows up in the database table ’modx_site_tmplvar_contentvalues’ for this TV. So, if there are no other TV’s selected the ’modx_site_tmplvar_contentvalues’ does not reflect any change whether I check or uncheck the ’Categories’ checkbox. This would be a problem if I wanted to query all resources with TV of ’Categories’ for resources that did not have any other options selected.
God does not save those who are only imaginary sinners. Be a sinner, and let your sins be strong, but let your trust in Christ be stronger, and rejoice in Christ who is the victor over sin, death, and the world.
-
- 2,877 Posts
What if you try set the values like this
Input options: Categories==categories||Other Value==othervalue
Default option: categories
+ Open up resource and re-save it!
http://svn.modxcms.com/docs/display/revolution/Creating+a+Template+Variable
Though Revo is in beta, so it might be a bug!
-
- 191 Posts
I gave it a shot but no luck -
here’s a short screen-cast illustrating my attempt. I can post to JIRA if it is a confirmed bug or perhaps I’m still missing something?
Thanks,
-matt
God does not save those who are only imaginary sinners. Be a sinner, and let your sins be strong, but let your trust in Christ be stronger, and rejoice in Christ who is the victor over sin, death, and the world.
-
- 2,877 Posts
-
- 191 Posts
Quote from: mrhaw at Oct 04, 2009, 08:23 AM
See this discussion 2 pages:
http://modxcms.com/forums/index.php/topic,38654.msg235791.html#msg235791
got it - thanks! I guess I need to figure out how SVN works so I can start getting the most recent builds.
God does not save those who are only imaginary sinners. Be a sinner, and let your sins be strong, but let your trust in Christ be stronger, and rejoice in Christ who is the victor over sin, death, and the world.
-
- 2,877 Posts
You rock going Revolution hard core!