Download "user manual"
Transcript
Layers [coreplugin]
• allOptionsListed, (boolean), only relevant when type=checkbox. If this setting
is true, no filter is applied when all boxes are checked. Default setting is false.
• options, a list of object-like options with an "option name" a label and a
selected boolean status (indicates the initial state of the filter form).
For instance:
i18n = true
criteria.foo.title = foobar
criteria.foo.type = checkbox
criteria.foo.allOptionsListed = true
criteria.foo.options.bou.label = some text
criteria.foo.options.bou.selected = true
criteria.foo.options.bla.label = blabla
criteria.foo.options.bla.selected = true
criteria.foo.options.chon.label = some other option not checked
If users check all the boxes of a criterion, no filter will be applied for this criterion. If
no box is checked for a criterion, all its filters will be applied.
For radio and dropdown criterion, it is possible to specify a neutral option (if
selected, no filter is applied for this criterion) using the null keyword. For instance:
criteria.foo.title = foobar
criteria.foo.type = dropdown
criteria.foo.options.bou.label = some text
criteria.foo.options.chon.label = some other text
criteria.foo.options.null.label = no filter
criteria.foo.options.null.selected = true
6.8.3. Server Configuration
The plugin server-side configuration described what layers criteria must apply to and
what the conditions matching the criteria options (PostGIS or ShapeFile FILTER
syntax) are. An object-like notation, symetrical to the client-side configuration, is
used. Each criterion owns the following properties:
• layers, a comma-separated list of one or more layers to whom the criterion
applies
• options, a collection of options "objects" with a filter property that indicates
what PostGIS or ShapeFile filter to apply. If you need to use double-quotes (")
within that property (for instance to enclose a table field name), rather user #
characters instead to avoid conflicts. The plugin will then replace them by
double-quotes characters.
For instance:
criteria.surf.layers = zone_a, zone_b
58