Yes. I have a same result : nothing. It was my first action to find the origin of the problem. That makes it possible to know the value of the variables.
Quote from: Marc at Aug 30, 2006, 03:03 AMBut when I used: &filter=`tvtype_pdt, [*type_pdt*], 1 | tvlieux_pdt, [*lieux_pdt*], 1` or &filter=`tvtype_pdt, Chaise, 1 | tvlieux_pdt, Restaurant, 1` or &filter=`tvtype_pdt, Chaise | tvlieux_pdt, Restaurant` I obtain nothing. :’(Did you try activating the debug mode to have a better grasp of why you get nothing ?
I use many multiple filters, for example:
&filter=tvregione,toscana|tvcatvinoit,vinoit
And it works.
Remember that Ditto filters widgeted TVs, for example if the TV has value of "hello" and the widget is set to "uppercase" the filter needs to be "tvWithTvPrefix,HELLO".
Learnt on my skin
[!Ditto? &tpl=`ListProducts` &startID=`30` &language=`french` &debug=`1` &displayArchive=`0` &filter=`tvtype_pdt, [*type_pdt*]| tvlieux_pdt, [*lieux_pdt*]` &mode=`development` &summarize=`99` &sortBy=`pagetitle` &sortDir=`ASC` &truncText=`Voir la fiche produit` !]

There is some trouble using TVs with multi-select capabilities to filter by. The Filter param can’t recognize Chaise if the TV has "Chaise" and "Table" selected at the same time.
Here my code :
[!Ditto? &tpl=`ListProducts` &startID=`30` &language=`french` &debug=`1` &displayArchive=`0` &filter=`tvtype_pdt, [*type_pdt*]| tvlieux_pdt, [*lieux_pdt*]` &mode=`development` &summarize=`99` &sortBy=`pagetitle` &sortDir=`ASC` &truncText=`Voir la fiche produit` !]
I do not use any widget in my TVs. On the other hand both are ListBox (multiple select).
Perhaps that is the origin of the problem.
type_pdt can take the values: Chaise and Table, or Chaise or Table
lieux_pdt can take the values: Restaurant and Ecole, Restaurant or Ecole
Because a chair can be sold for a restaurant as for a School. Contrary, in a restaurant, one can find chairs or tables.
You tested this type of configuration in your tests?
Thanks
A last version of Modx (0.9.2.1) include a fix.
There was an issue with multiple selects, and there is a fix from Raymond
I also think that Ditto does not take into account the filters with multi-select checkbox or listbox. I will re-examine my TVs.
...
There is some trouble using TVs with multi-select capabilities to filter by. The Filter param can’t recognize Chaise if the TV has "Chaise" and "Table" selected at the same time.
In fact these compose a single value, not different values, so it’s difficult to filter it. Try outputting the TVs in plain page [*type_pdt*] to see what’s the difference of the 3 cases you have.
I’ve had a similar problem with multiple checkboxes: I bypassed the problem splitting from one multi-select checkbox TV to various single-checkbox TVs which I can happily filter by (by single filter or sequences of multiple filters separated by pipes "|").

I also think that Ditto does not take into account the filters with multi-select checkbox or listbox. I will re-examine my TVs.
I will look in this way too. Thanks
Quote from: Marc at Aug 30, 2006, 01:15 PM
I also think that Ditto does not take into account the filters with multi-select checkbox or listbox. I will re-examine my TVs.
Wait: I haven’t told Ditto does not take them into account... I’ve told it’s difficult to filter by those.
To filter by a tv you’ve to use the exact, case sensitive output of the tv. And it’s difficult to say what a multi-select (checkbox or list doesn’t mean) tv is outputting.
Try to output in a page the value of a combined tv.

