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