-
☆ A M B ☆
- 3,112 Posts
I don’t know it it’s intended to do as such, but this behavior returns [[!getResources? ... &tvFilters=`tvName==defaultValue` ...]] as an empty result.
http://bugs.modx.com/issues/3353
Rico
Genius is one percent inspiration and ninety-nine percent perspiration.
Thomas A. Edison
MODx is great, but knowing how to use it well makes it perfect!
www.virtudraft.com
Security, security, security! |
Indonesian MODx Forum |
MODx Revo's cheatsheets |
MODx Evo's cheatsheets
Author of
Easy 2 Gallery 1.4.x,
PHPTidy,
spieFeed,
FileDownload R,
Upload To Users CMP,
Inherit Template TV,
LexRating,
ExerPlan,
Lingua,
virtuNewsletter,
Grid Class Key,
SmartTag,
prevNext
Maintainter/contributor of
Babel
Because it's hard to follow all topics on the forum, PING ME ON TWITTER
@_goldsky if you need my help.
Quote from: goldsky at Jan 06, 2011, 12:32 PM
I don’t know it it’s intended to do as such, but this behavior returns [[!getResources? ... &tvFilters=`tvName==defaultValue` ...]] as an empty result.
http://bugs.modx.com/issues/3353
I’ve thought about reporting that myself a time or two. I can confirm the behavior, but I don’t know if it’s by design, but I suspect that it is.
-
☆ A M B ☆
- 3,112 Posts
It’s not good if it is.
Well, TV’s default value becomes cripple.
*deleted all the default values*
Rico
Genius is one percent inspiration and ninety-nine percent perspiration.
Thomas A. Edison
MODx is great, but knowing how to use it well makes it perfect!
www.virtudraft.com
Security, security, security! |
Indonesian MODx Forum |
MODx Revo's cheatsheets |
MODx Evo's cheatsheets
Author of
Easy 2 Gallery 1.4.x,
PHPTidy,
spieFeed,
FileDownload R,
Upload To Users CMP,
Inherit Template TV,
LexRating,
ExerPlan,
Lingua,
virtuNewsletter,
Grid Class Key,
SmartTag,
prevNext
Maintainter/contributor of
Babel
Because it's hard to follow all topics on the forum, PING ME ON TWITTER
@_goldsky if you need my help.
-
MODX Staff
- 10,725 Posts
FWIW: this is simply an issue with the way getResources does tv filtering. In the documentation, it is noted that this will ONLY work with explicit values set for each Resource, and not with the default values or with calculated values. getResources chose efficiency over features, but other Snippets can certainly find ways to handle the default values as well—just will be a little less efficient.
-
☆ A M B ☆
- 3,112 Posts
I don’t understand the concept, then.
- If a user does not choose any [checkbox] because the TV has set the default value, it is not her fault if getResources does not fetch that resource.
- If MODX does not store the value because it is the same with the default value, it makes more problem.
One of them should change that basic concept.
Rico
Genius is one percent inspiration and ninety-nine percent perspiration.
Thomas A. Edison
MODx is great, but knowing how to use it well makes it perfect!
www.virtudraft.com
Security, security, security! |
Indonesian MODx Forum |
MODx Revo's cheatsheets |
MODx Evo's cheatsheets
Author of
Easy 2 Gallery 1.4.x,
PHPTidy,
spieFeed,
FileDownload R,
Upload To Users CMP,
Inherit Template TV,
LexRating,
ExerPlan,
Lingua,
virtuNewsletter,
Grid Class Key,
SmartTag,
prevNext
Maintainter/contributor of
Babel
Because it's hard to follow all topics on the forum, PING ME ON TWITTER
@_goldsky if you need my help.