Changes between Version 33 and Version 34 of S3/FilterForms


Ignore:
Timestamp:
03/27/13 21:40:52 (12 years ago)
Author:
Dominic König
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • S3/FilterForms

    v33 v34  
    137137=== Configuration of Filter Forms in S3CRUD ===
    138138
    139 S3CRUD has filter forms integrated in the standard list view (=multi-record request w/o URL method) - as well as the /datatable_f and /datalist_f views.
    140 
    141 For these pages, the filter widgets are configured per resource as a list of filter widget instances in the "filter_widgets"-setting like:
     139==== Standard List Views ====
     140
     141S3CRUD has filter forms integrated in the standard list view (=multi-record request w/o URL method). The filter form can be suppressed by a keyword argument to {{{s3_rest_controller()}}:
     142
     143{{{
     144output = s3_rest_controller(prefix, resourcename,
     145                            hide_filter=True        # hide filter form in list views
     146                           )
     147}}}
     148
     149To render only the datatable or datalist without the filter form, choose the /datatable or /datalist method instead.
     150
     151To choose a particular list type from the URL yet render the filter form, choose the /datatable_f resp. the /datalist_f method (overrides hide_filter).
     152
     153==== Configuration ====
     154
     155For pages with filter forms, the filter widgets are configured per resource as a list of filter widget instances in the "filter_widgets"-setting like:
    142156
    143157{{{
     
    160174The widgets appear in the form in list order.
    161175
     176==== Controller Arguments ====
     177
    162178Additionally, there are a number of controller options for the s3_rest_controller call:
    163179