hi creativejay
ive installed tvexplorer , copied your code as you detailed above and this is my call
[[tvExplorer?&dittoName=`ditt`&dittoSnippetParameters=`tpl:ProductSearchTpl|parents:128|depth:3|display:all|paginate:1|sortBy:pagetitle|sortDir:asc|hideFolders:1`&formTPL=`tveProductSearch`]]
so im baffled, i have to close all the gaps up or i get a the following error
PHP error debug
Error: Invalid argument supplied for foreach()
Error type/ Nr.: Warning - 2
File: C:\xampp\htdocs\xampp\modxe\assets\modules\tvEditor\class\tveditor.class.php
Line: 785
Line 785 source: foreach($tvFormElements as $name => $element){
then when i close the gaps i get
dittoName is missing. This parameter is mandatory
any ideas im baffled, if you could help me ill be very grateful, maybe you could go back to basics, iv been fiddling with tvexplorer for a while now with no luck...
many thanks in advanced
-
☆ A M B ☆
- 24,524 Posts
I’m pretty sure you need a space between the ? and the leading &; either that or skip the leading & and have dittoName immediately follow the ? with no space.
Are you just trying to get it to show a value other than the usual "Please select" message? Or are you trying to preselect a certain value?
For the former, I think you can simply remove the ’blanklabel’ parameter. Whichever value you want to have listed first, just make sure it’s first in your values list in the associated tv.
Edited: I’m noticing that what you’re trying to do may be more complex than I originally understood. Sorry if that’s the case!
Now I’ve got another issue of my own.
Filters don’t seem to be displaying the appropriate lists, so I’m starting to think it has something to do with my values.
I had changed my values from words (1==one||2==two||4==four||8==eight||...) back to numbers, adding zeros to create the appropriate length for a search (1==1000||2=2000||4==40000||8=8000||...).
Then I tried to use filter->3 in my select placeholders. The results keep coming back wrong, or not at all. The only one that seems to work correctly using greater than/less than filters is filter->4. Filters 1, 7 and 9 also seem to work. Contrariwise, their counterparts 2 and 8, do not.
Are my zeros throwing off the way the values are read? Are they still not ’numbers’ in the eyes of ditto?
You should first try to disable the opposite filter.
Add the right param, it should be listed in my first post
:)