doc/book/en/development/webstdlib/primary.rst
changeset 4430 0b6a069eb29e
parent 3258 6536ee4f37f7
child 4437 21f2e01fdd6a
equal deleted inserted replaced
4429:0cd207567f37 4430:0b6a069eb29e
     3 
     3 
     4 The primary view of an entity is the view called by default when a single
     4 The primary view of an entity is the view called by default when a single
     5 entity is in the result set and needs to be displayed.
     5 entity is in the result set and needs to be displayed.
     6 
     6 
     7 This view is supposed to render a maximum of informations about the entity.
     7 This view is supposed to render a maximum of informations about the entity.
       
     8 
       
     9 Beware when overriding this top level `cell_call` in a primary because
       
    10 you will loose a bunch of functionnality that automatically comes with
       
    11 it : `in-context` boxes, related boxes, some navigation, some
       
    12 displaying of the metadata, etc. It might be interresting to
       
    13 understand the implementation fo the `cell_call` to override specifics
       
    14 bits of it.
     8 
    15 
     9 Rendering methods and attributes for ``PrimaryView``
    16 Rendering methods and attributes for ``PrimaryView``
    10 ----------------------------------------------------
    17 ----------------------------------------------------
    11 
    18 
    12 By default, *CubicWeb* provides a primary view for every available
    19 By default, *CubicWeb* provides a primary view for every available