doc/book/en/devweb/views/primary.rst
changeset 8665 e65af61bde7d
parent 8190 2a3c1b787688
equal deleted inserted replaced
8664:29652410c317 8665:e65af61bde7d
    49 
    49 
    50 For instance, to hide the ``title`` attribute of the ``Blog`` entity:
    50 For instance, to hide the ``title`` attribute of the ``Blog`` entity:
    51 
    51 
    52 .. sourcecode:: python
    52 .. sourcecode:: python
    53 
    53 
    54    from cubicweb.web import uicfg
    54    from cubicweb.web.views import uicfg
    55    uicfg.primaryview_section.tag_attribute(('Blog', 'title'), 'hidden')
    55    uicfg.primaryview_section.tag_attribute(('Blog', 'title'), 'hidden')
    56 
    56 
    57 **Relations** can be either displayed in one of the three sections or hidden.
    57 **Relations** can be either displayed in one of the three sections or hidden.
    58 
    58 
    59 For relations, there are two methods:
    59 For relations, there are two methods: