opengeek / getResources

A MODx Snippet for iterating a collection of MODx Resources
http://rtfm.modx.com/display/ADDON/getResources
27 stars 22 forks source link

Enhancing tvFilter: #25

Closed u007 closed 12 years ago

u007 commented 13 years ago

I've done some modification to getResources to accomodate more TVFilters condition operators such as : != EXISTS NOTEXISTS | : for OR operator

And changed that the "OR" "|" condition will only effect after the main condition is meet, etc. published='1' and deleted='0'

Examples: tvFilters= mytv!=%xxx%|mytv==NOTEXISTS Setting condition to TV mytv does not contain tag "xxx" or no mytv variable exists

getResources2.php http://www.mercstudio.net/assets/media/getResources2.php.zip

goldsky commented 13 years ago

Bump the topic. But I have some notes:

Mark-H commented 13 years ago

I'd prefer to use some json style then, although that may only be nice from a dev point of view and will discourage others due to its initial complexity..

opengeek commented 12 years ago

Though I am rejecting the specific code and some of the suggestions here, I am adding support for new operators in the 1.4.2-pl release coming soon.