Hi Guys,
I have this Ditto Call,
[!Ditto? &tpl=`DT-FindDesignerOfAHouse` &startID=`6` &displayArchive=`0` &descendentDepth=`0` &summarize=`1000` &sortBy=`menuindex` &sortDir=`ASC` &hiddenTVs=`tvBrands,tvDesigner` &filter=`tvBrands,39,=` !]
which work fine.
But i want to exclude the Brands whith a 0. So i do
[!Ditto? &tpl=`DT-FindDesignerOfAHouse` &startID=`6` &displayArchive=`0` &descendentDepth=`0` &summarize=`1000` &sortBy=`menuindex` &sortDir=`ASC` &hiddenTVs=`tvBrands,tvDesigner` &filter=`tvBrands,39,=|tvBrands,0,!=` !]
or bring a search based on two variables like
[!Ditto? &tpl=`DT-FindDesignerOfAHouse` &startID=`6` &displayArchive=`0` &descendentDepth=`0` &summarize=`1000` &sortBy=`menuindex` &sortDir=`ASC` &hiddenTVs=`tvBrands,tvDesigner` &filter=`tvBrands,39,=|tvDesigner,0,!=` !]
It seems that ditto wont work with the | in the search or is my syntax wrong? Its on Modx0.95 and ditto 1.0.2.
thank you!
alex.
You can only use symbols (!=,<=) when running the snippet with $modx->runSnippet().
You should use the corresponding number. There is a table in the forums that should guide you.
Hi mark,
i did not use runsnippet, its a call from a document. And when i try to use the numbers in place of =, is behaves in weird and mysterious ways.
alex.
"And when i try to use the numbers in place of =, is behaves in weird and mysterious ways"
Please explain.