Using filters to select further

The &filter parameter filters out documents that match certain criteria. That is, documents that match are excluded from the output list. Sometimes you want to filter items in. This is possible using a "double negative" - excluding items that don't match a "not equals" condition.

A filter has three elements, separated by commas (and no extra spaces): field,criterion,mode. field can be any document field or template variable;

criterion is data of the same type (string, number etc.) as the field;

mode is one of:

Mode Comparison: exclude document if field:
1 is not equal to the criterion (!=)
2 is equal to the criterion (==)
3 is less than the criterion (<)
4 is greater than the criterion (>)
5 is less than or equal to the criterion (<=)
6 is greater than or equal to the criterion (>=)
7 does not contain the text of the criterion
8 contains the text of the criterion
9 case insensitive version of #7
10 case insensitive version of #8
11 checks leading character of the field (??? TBD)
This example selects all the documents with the string "tacit" in the page title (by excluding those that don't contain it; case-insensitive comparison):
[[Ditto? &modId=`6` &parents=`6` &filter=`pagetitle,tacit,9` ]]

Class aptent ITEM 160 taciti sociosqu ad litora

by Anon on 18-May-05 05:20
Pellentesque gravida, odio sit amet ullamcorper tempus, felis ligula viverra neque, at placerat felis nunc id leo. Nunc sit amet justo non mi tincidunt condimentum

Curabitur molestie ITEM 195 taciti pellicula con amore

by Anon on 12-Dec-03 07:41
Pellentesque gravida, odio sit amet ullamcorper tempus, felis ligula viverra neque, at placerat felis nunc id leo. Nunc sit amet justo non mi tincidunt condimentum

Pellentesque feugiat ITEM 235 tacituri te salutambulus

by Anon on 21-Sep-03 02:50
Pellentesque gravida, odio sit amet ullamcorper tempus, felis ligula viverra neque, at placerat felis nunc id leo. Nunc sit amet justo non mi tincidunt condimentum

Duis tristique ITEM 167 urna id metus. Tacitus non est quis erat

by Anon on 07-Jan-02 03:02
Maecenas volutpat. In vitae arcu at quam congue dictum

Multiple filters can be used, separated by the "|" pipe symbol. Documents that match any of the filters will be excluded. This example selects the range of documents 170-173 by ID:

[[Ditto? &modId=`6` &parents=`6` &filter=`id,170,3|id,173,4` ]]

Nulla facilisi. ITEM 173 Aenean rhoncus justo a

by Anon on 27-Apr-02 03:46
Aenean rhoncus justo a purus. Etiam eget purus

Fusce placerat. ITEM 172 In urna urna, ornare

by Anon on 25-Apr-02 00:15
In urna urna, ornare nec, porttitor vel, rhoncus in, felis. Suspendisse id odio et felis fringilla euismod

Donec molestie, ITEM 171 ligula at convallis interdum,

by Anon on 25-Mar-02 04:03
Sed suscipit luctus arcu. Phasellus tortor

Proin volutpat ITEM 170 lectus at nisi. Nam

by Anon on 23-Mar-02 12:24
Nam neque eros, consectetur quis, fringilla in, pretium at, tortor. Sed aliquam ultrices neque