doc/book/en/development/webstdlib/baseviews.rst
branchstable
changeset 5222 ed6905d98a5e
parent 3258 6536ee4f37f7
equal deleted inserted replaced
5221:b851558456bb 5222:ed6905d98a5e
    10 to one or more entities. Their identifier is what distinguish them from
    10 to one or more entities. Their identifier is what distinguish them from
    11 each others and the main ones are:
    11 each others and the main ones are:
    12 
    12 
    13 HTML views
    13 HTML views
    14 ~~~~~~~~~~
    14 ~~~~~~~~~~
       
    15 
    15 Special views
    16 Special views
    16 `````````````
    17 `````````````
    17 
    18 
    18 *noresult*
    19 *noresult*
    19     This view is the default view used when no result has been found
    20     This view is the default view used when no result has been found
    41     displayed in or out of context.  By default it returns the result of `text`
    42     displayed in or out of context.  By default it returns the result of `text`
    42     in a link leading to the primary view of the entity.
    43     in a link leading to the primary view of the entity.
    43 
    44 
    44 List
    45 List
    45 `````
    46 `````
       
    47 
    46 *list*
    48 *list*
    47     This view displays a list of entities by creating a HTML list (`<ul>`)
    49     This view displays a list of entities by creating a HTML list (`<ul>`)
    48     and call the view `listitem` for each entity of the result set.
    50     and call the view `listitem` for each entity of the result set.
    49 
    51 
    50 *listitem*
    52 *listitem*
    51     This view redirects by default to the `outofcontext` view.
    53     This view redirects by default to the `outofcontext` view.
    52 
    54 
    53 *adaptedlist*
    55 *sameetypelist*
    54     This view displays a list of entities of the same type, in HTML section (`<div>`)
    56     This view displays a list of entities of the same type, in HTML section (`<div>`)
    55     and call the view `adaptedlistitem` for each entity of the result set.
    57     and call the view `sameetypelistitem` for each entity of the result set.
    56 
    58 
    57 *adaptedlistitem*
    59 *sameetypelistitem*
    58     This view redirects by default to the `outofcontext` view.
    60     This view redirects by default to the `listitem` view.
    59 
    61 
    60 *csv*
    62 *csv*
    61     This view applies to entity groups, which are individually
    63     This view applies to entity groups, which are individually
    62     displayed using the `incontext` view. It displays each entity as a
    64     displayed using the `incontext` view. It displays each entity as a
    63     coma separated list. It is NOT related to the well-known text file
    65     coma separated list. It is NOT related to the well-known text file