22Customising Roundup
33===================
44
5- :Version: $Revision: 1.161 $
5+ :Version: $Revision: 1.161.2.1 $
66
77.. This document borrows from the ZopeBook section on ZPT. The original is at:
88 http://www.zope.org/Documentation/Books/ZopeBook/current/ZPT.stx
@@ -2180,12 +2180,12 @@ Index View Specifiers
21802180An index view specifier (URL fragment) looks like this (whitespace has
21812181been added for clarity)::
21822182
2183- /issue?status=unread,in-progress,resolved&
2184- topic=security,ui&
2185- : group=+ priority&
2186- : sort== activity&
2187- : filters=status,topic&
2188- : columns=title,status,fixer
2183+ /issue?status=unread,in-progress,resolved&
2184+ topic=security,ui&
2185+ @ group=priority&
2186+ @ sort=- activity&
2187+ @ filters=status,topic&
2188+ @ columns=title,status,fixer
21892189
21902190The index view is determined by two parts of the specifier: the layout
21912191part and the filter part. The layout part consists of the query
@@ -2210,11 +2210,28 @@ descending order. The filter section shows filters for the "status" and
22102210"topic" properties, and the table includes columns for the "title",
22112211"status", and "fixer" properties.
22122212
2213+ ============ =============================================================
2214+ Argument Description
2215+ ============ =============================================================
2216+ @sort sort by prop name, optionally preceeded with '-' to give
2217+ descending or nothing for ascending sorting.
2218+ @group group by prop name, optionally preceeded with '-' or to sort
2219+ in descending or nothing for ascending order.
2220+ @columns selects the columns that should be displayed. Default is
2221+ all.
2222+ @filter indicates which properties are being used in filtering.
2223+ Default is none.
2224+ propname selects the values the item properties given by propname must
2225+ have (very basic search/filter).
2226+ @search_text if supplied, performs a full-text search (message bodies,
2227+ issue titles, etc)
2228+ ============ =============================================================
2229+
22132230
22142231Searching Views
22152232---------------
22162233
2217- Note: if you add a new column to the ``: columns`` form variable
2234+ Note: if you add a new column to the ``@ columns`` form variable
22182235 potentials then you will need to add the column to the appropriate
22192236 `index views`_ template so that it is actually displayed.
22202237
@@ -2224,8 +2241,8 @@ This is one of the class context views. The template used is typically
22242241
22252242- sets up additional filtering, as well as performing indexed text
22262243 searching
2227- - sets the ``: filter`` variable correctly
2228- - saves the query off if ``: query_name`` is set.
2244+ - sets the ``@ filter`` variable correctly
2245+ - saves the query off if ``@ query_name`` is set.
22292246
22302247The search page should lay out any fields that you wish to allow the
22312248user to search on. If your schema contains a large number of properties,
@@ -2235,18 +2252,18 @@ Strings, consider having their value indexed, and then they will be
22352252searchable using the full text indexed search. This is both faster, and
22362253more useful for the end user.
22372254
2238- The two special form values on search pages which are handled by the
2239- "search" action are :
2240-
2241- :search_text
2242- Text with which to perform a search of the text index. Results from
2243- that search will be used to limit the results of other filters (using
2244- an intersection operation )
2245- :query_name
2246- If supplied, the search parameters (including :search_text) will be
2247- saved off as a the query item and registered against the user's
2248- queries property. Note that the *classic* template schema has this
2249- ability, but the *minimal* template schema does not.
2255+ If the search view does specify the " search" ``@action``, then it may also
2256+ provide an additional argument :
2257+
2258+ ============ =============================================================
2259+ Argument Description
2260+ ============ =============================================================
2261+ @query_name if supplied, the index parameters (including @search_text )
2262+ will be saved off as a the query item and registered against
2263+ the user's queries property. Note that the *classic* template
2264+ schema has this ability, but the *minimal* template schema
2265+ does not.
2266+ ============ =============================================================
22502267
22512268
22522269Item Views
0 commit comments