related to one of my recent posts:
http://modxcms.com/forums/index.php/topic,21312.msg131683.html#msg131683
using your advice, i have attempted to implement tvExplorer for my site. great module/snippet!!
i am having some trouble though:
1. i have 2 select boxes in my form. when the first is left blank and the second one is selected, i get the following error:
PHP error debug
Error: strpos() [function.strpos]: Empty delimiter.
Error type/ Nr.: Warning - 2
File: /home/mcnei5/public_html/dev-crosscountycoc/assets/snippets/ditto/classes/filter.class.inc.php
Line: 85
Line 85 source: if (strpos($value[$this->array_key], $this->filterValue)!==FALSE)
the form chunk i am using is as follows:
<form action="[~[*id*]~]" method="get" >
<fieldset>
[+tve.tmplvar_business_city: type->dropdown:filter->7:addBlank->0+]
</fieldset>
<fieldset>
[+tve.tmplvar_business_state: type->dropdown:filter->7:addBlank->0+]
</fieldset>
<fieldset class="sendForm">
<input type="submit" name="search" value="Search" />
</fieldset>
</form>
isn’t the filter supposed to return an "OR" results - which would be any document with tmplvar_business_state = value regardless of tmplvar_business_city?
2. when i clear out both fields (select the first blank option at top of select), ditto returns all docs. i need it to return no docs (essentially clearing out the result set). how can i accomplish this?
3. what does the addBlank parameter do? i tried setting it to 1 and 0 - but both seem to result in a "blank" option at the top of the select box.
thanks in advance.