@@ -2098,12 +2098,12 @@ Index View Specifiers
20982098An index view specifier (URL fragment) looks like this (whitespace has
20992099been added for clarity)::
21002100
2101- /issue?status=unread,in-progress,resolved&
2102- topic=security,ui&
2103- : group=+ priority&
2104- : sort== activity&
2105- : filters=status,topic&
2106- : columns=title,status,fixer
2101+ /issue?status=unread,in-progress,resolved&
2102+ topic=security,ui&
2103+ @ group=priority&
2104+ @ sort=- activity&
2105+ @ filters=status,topic&
2106+ @ columns=title,status,fixer
21072107
21082108The index view is determined by two parts of the specifier: the layout
21092109part and the filter part. The layout part consists of the query
@@ -2128,11 +2128,29 @@ descending order. The filter section shows filters for the "status" and
21282128"topic" properties, and the table includes columns for the "title",
21292129"status", and "fixer" properties.
21302130
2131+ ============ =============================================================
2132+ Argument Description
2133+ ============ =============================================================
2134+ @sort sort by prop name, optionally preceeded with '-' to give
2135+ descending or nothing for ascending sorting.
2136+ @group group by prop name, optionally preceeded with '-' or to sort
2137+ in descending or nothing for ascending order.
2138+ @columns selects the columns that should be displayed. Default is
2139+ all.
2140+ @filter indicates which properties are being used in filtering.
2141+ Default is none.
2142+ propname selects the values the item properties given by propname must
2143+ have (very basic search/filter).
2144+ @search_text if supplied, performs a full-text search (message bodies,
2145+ issue titles, etc)
2146+ ============ =============================================================
2147+
2148+
21312149Searching Views
21322150---------------
21332151
21342152.. note::
2135- If you add a new column to the ``: columns`` form variable
2153+ If you add a new column to the ``@ columns`` form variable
21362154 potentials then you will need to add the column to the appropriate
21372155 `index views`_ template so that it is actually displayed.
21382156
@@ -2142,8 +2160,8 @@ This is one of the class context views. The template used is typically
21422160
21432161- sets up additional filtering, as well as performing indexed text
21442162 searching
2145- - sets the ``: filter`` variable correctly
2146- - saves the query off if ``: query_name`` is set.
2163+ - sets the ``@ filter`` variable correctly
2164+ - saves the query off if ``@ query_name`` is set.
21472165
21482166The search page should lay out any fields that you wish to allow the
21492167user to search on. If your schema contains a large number of properties,
@@ -2153,18 +2171,18 @@ Strings, consider having their value indexed, and then they will be
21532171searchable using the full text indexed search. This is both faster, and
21542172more useful for the end user.
21552173
2156- The two special form values on search pages which are handled by the
2157- "search" action are :
2158-
2159- :search_text
2160- Text with which to perform a search of the text index. Results from
2161- that search will be used to limit the results of other filters (using
2162- an intersection operation )
2163- :query_name
2164- If supplied, the search parameters (including :search_text) will be
2165- saved off as a the query item and registered against the user's
2166- queries property. The *classic* template schema has this ability, but
2167- the *minimal* template schema does not.
2174+ If the search view does specify the " search" ``@action``, then it may also
2175+ provide an additional argument :
2176+
2177+ ============ =============================================================
2178+ Argument Description
2179+ ============ =============================================================
2180+ @query_name if supplied, the index parameters (including @search_text )
2181+ will be saved off as a the query item and registered against
2182+ the user's queries property. Note that the *classic* template
2183+ schema has this ability, but the *minimal* template schema
2184+ does not.
2185+ ============ =============================================================
21682186
21692187
21702188Item Views
0 commit comments