@@ -274,11 +274,11 @@ Create preset static page templates available from the New Page dialog window.
274
274
**Declaration **
275
275
276
276
The page templates has to be defined into the :file: `__manifest__.py ` of the module through
277
- `new_page_templates `:
277
+ `new_page_templates ` and :file: ` new_page_template_templates.xml ` :
278
278
279
279
.. code-block :: python
280
280
:caption: `/ website_airproof/ __manifest__.py`
281
- :emphasize- lines: 15 - 18
281
+ :emphasize- lines: 11 , 16 - 19
282
282
283
283
{
284
284
' name' : ' Airproof Theme' ,
@@ -290,6 +290,7 @@ The page templates has to be defined into the :file:`__manifest__.py` of the mod
290
290
' depends' : [' website' ],
291
291
' data' : [
292
292
# ...
293
+ ' views/new_page_template_templates.xml'
293
294
],
294
295
' assets' : {
295
296
# ...
@@ -329,20 +330,22 @@ Instantiate each building block (modified or not) for the page template:
329
330
< template id =" new_page_template_s_airproof_text_block_h1" inherit_id=" website_airproof.s_airproof_text_block_h1" primary=" True" / >
330
331
< template id =" new_page_template_airproof_faq_s_title" inherit_id=" website.s_title" primary=" True" / >
331
332
332
- Then, create your page template with some `t- snippet- call` within an ' #wrap' as explained above:
333
+ Then, create your page template with some `t- snippet- call` within an ` # wrap` as explained above:
333
334
334
335
.. code- block:: xml
335
336
:caption: `/ website_airproof/ views/ new_page_template_templates.xml`
336
337
337
- < div id =" wrap" >
338
- < t t- snippet- call=" website_airproof.new_page_template_airproof_faq_s_text_block_h1" / >
339
- < t t- snippet- call=" website_airproof.new_page_template_airproof_faq_s_title" / >
340
- < t t- snippet- call=" website_airproof.new_page_template_airproof_faq_s_faq_collapse" / >
341
- < t t- snippet- call=" website_airproof.new_page_template_airproof_faq_s_call_to_action" / >
342
- < / div>
338
+ < template id =" new_page_template_sections_airproof_faq" name=" Airproof - New Page Template FAQ" >
339
+ < div id =" wrap" >
340
+ < t t- snippet- call=" website_airproof.new_page_template_airproof_faq_s_text_block_h1" / >
341
+ < t t- snippet- call=" website_airproof.new_page_template_airproof_faq_s_title" / >
342
+ < t t- snippet- call=" website_airproof.new_page_template_airproof_faq_s_faq_collapse" / >
343
+ < t t- snippet- call=" website_airproof.new_page_template_airproof_faq_s_call_to_action" / >
344
+ < / div>
345
+ < / template>
343
346
344
- Once the page template is created, it can be added to an existing group . Find below a list of the
345
- existing group :
347
+ Once the page template is created, create a custom group and add it to the existing ones . Find below a list of the
348
+ existing groups :
346
349
347
350
.. code- block:: xml
348
351
:caption: `/ website/ views/ new_page_template_templates.xml`
@@ -362,7 +365,7 @@ Feel free to add custom groups to the list:
362
365
.. code- block:: xml
363
366
:caption: `/ website_airproof/ views/ new_page_template_templates.xml`
364
367
365
- < template id =" new_pages_template_groups " inherit_id=" website.new_pages_template_groups " name=" Airproof - New Page Template Groups" >
368
+ < template id =" new_page_template_groups " inherit_id=" website.new_page_template_groups " name=" Airproof - New Page Template Groups" >
366
369
< xpath expr=" //div[@id='custom']" position=" after" >
367
370
< div id =" airproof" > Airproof< / div>
368
371
< / xpath>
0 commit comments