Created
March 22, 2011 09:30
-
-
Save avoronkin/880984 to your computer and use it in GitHub Desktop.
Multiple TV searching via xPDO
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//http://modxcms.com/forums/index.php?topic=58644.msg354702#msg354702 | |
$query->where(array( | |
array( | |
'id:IN' => $children_of_this_folder, | |
'published' => true, | |
'deleted' => false, | |
'hidemenu' => false, | |
'isfolder' => false, | |
), | |
array( | |
array( | |
'TemplateVar.name' => 'tv1', | |
'TemplateVarResources.value' => 'something', | |
), | |
array( | |
'TemplateVar.name' => 'tv2', | |
'TemplateVarResources.value:!=' => 'something else' | |
) | |
) | |
)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment