equal
deleted
inserted
replaced
6 Look at ``cubicweb/web/views/basetemplates.py`` and you will |
6 Look at ``cubicweb/web/views/basetemplates.py`` and you will |
7 find the base templates used to generate HTML for your application. |
7 find the base templates used to generate HTML for your application. |
8 |
8 |
9 A page is composed as indicated on the schema below: |
9 A page is composed as indicated on the schema below: |
10 |
10 |
11 .. image:: ../../images/lax-book.06-main-template-layout.en.png |
11 .. image:: ../../images/lax-book_06-main-template-layout_en.png |
12 |
12 |
13 In this section we will demonstrate a change in one of the main |
13 In this section we will demonstrate a change in one of the main |
14 interesting template from the three you will look for, |
14 interesting template from the three you will look for, |
15 that is to say, the HTMLPageHeader, the HTMLPageFooter |
15 that is to say, the HTMLPageHeader, the HTMLPageFooter |
16 and the TheMainTemplate. |
16 and the TheMainTemplate. |
81 self.template('logform', rset=self.cw_rset, id='popupLoginBox', klass='hidden', |
81 self.template('logform', rset=self.cw_rset, id='popupLoginBox', klass='hidden', |
82 title=False, message=False) |
82 title=False, message=False) |
83 |
83 |
84 |
84 |
85 |
85 |
86 .. image:: ../../images/lax-book.06-header-no-login.en.png |
86 .. image:: ../../images/lax-book_06-header-no-login_en.png |
87 |
87 |
88 Customize footer |
88 Customize footer |
89 ```````````````` |
89 ```````````````` |
90 |
90 |
91 If you want to change the footer for example, look |
91 If you want to change the footer for example, look |
119 It defines the template of ``__regid__ = main`` that is used by the application. Is |
119 It defines the template of ``__regid__ = main`` that is used by the application. Is |
120 also defined in ``cubicweb/web/views/basetemplates.py`` another template that can |
120 also defined in ``cubicweb/web/views/basetemplates.py`` another template that can |
121 be used based on TheMainTemplate called SimpleMainTemplate which does not have |
121 be used based on TheMainTemplate called SimpleMainTemplate which does not have |
122 a top section. |
122 a top section. |
123 |
123 |
124 .. image:: ../../images/lax-book.06-simple-main-template.en.png |
124 .. image:: ../../images/lax-book_06-simple-main-template_en.png |
125 |
125 |
126 XXX |
126 XXX |
127 [WRITE ME] |
127 [WRITE ME] |
128 |
128 |
129 * customize MainTemplate and show that everything in the user |
129 * customize MainTemplate and show that everything in the user |