Quote from: sottwell at Aug 28, 2006, 11:26 AM
How about filtering for "chaise", and filtering for "restaurant", and using && in your code to get the items that are "chaise" and "restaurant"?
I seek to build a catalogue of product. I have several cards produced (Chair, Table,…) and several places possible of use (Restaurant, School,…). I seek to obtain the products who answer two criteria: To be a chair and to be able to use it in a restaurant. I created two TV:
tvtype_pdt = `Chaise||Table||...` (Chair, Table,…)
tvlieux_pdt= `Restaurant||Ecole||...` (Restaurant, School,…)
To obtain the list of the chairs: &filter=`tvtype_pdt, Chaise, 1` give the result.
To obtain the list of the products in Restaurant: &filter=`tvlieux_pdt, Restaurant, 1` give the result.
But to obtain the list of the chairs for a restaurant: &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` do not give anything.
Quote from: Mark at Aug 28, 2006, 12:53 PM
&filter=`tvtype_pdt,Chaise|tvlieux_pdt,Restaurant`
Try this which uses actual values for the filter. Note that tags will not work for this nor &&.
use Chaise to use chair instead of [*type_pdt*] is preferable, I am appropriate about it. But I tested several filters always without result.
Quote from: heliotrope at Aug 28, 2006, 12:03 PM
Hi,
You should have a look to "tagmode" param in ditto documentation
I guess using it you could limit the list to items specifying => &tags=`chaise, restaurant` &tagsMode=onlyAllTags
:-)
This idea is interesting but I do not manage to implement it. I tested:
&tags=`Chaise, Restaurant` &tagsMode=onlyAllTags
&tags=`Chaise, Restaurant` &tagsMode=`onlyAllTags`
&tags=`Chaise, Restaurant` &tagsMode=`onlyAllTags` &filter=`tvtype_pdt, Chaise | tvlieux_pdt, Restaurant`
no result.
I do not have any more an idea. In which direction do have I to go? Thank you for your assistance.