@@ -272,11 +272,11 @@ Create preset static page templates available from the New Page dialog window.
272272**Declaration **
273273
274274The 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 ` :
276276
277277.. code-block :: python
278278 :caption: `/ website_airproof/ __manifest__.py`
279- :emphasize- lines: 15 - 18
279+ :emphasize- lines: 11 , 16 - 19
280280
281281 {
282282 ' name' : ' Airproof Theme' ,
@@ -288,6 +288,7 @@ The page templates has to be defined into the :file:`__manifest__.py` of the mod
288288 ' depends' : [' website' ],
289289 ' data' : [
290290 # ...
291+ ' views/new_page_template_templates.xml'
291292 ],
292293 ' assets' : {
293294 # ...
@@ -327,20 +328,22 @@ Instantiate each building block (modified or not) for the page template:
327328 < template id =" new_page_template_s_airproof_text_block_h1" inherit_id=" website_airproof.s_airproof_text_block_h1" primary=" True" / >
328329 < template id =" new_page_template_airproof_faq_s_title" inherit_id=" website.s_title" primary=" True" / >
329330
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:
331332
332333.. code- block:: xml
333334 :caption: `/ website_airproof/ views/ new_page_template_templates.xml`
334335
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>
341344
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 :
344347
345348.. code- block:: xml
346349 :caption: `/ website/ views/ new_page_template_templates.xml`
@@ -360,7 +363,7 @@ Feel free to add custom groups to the list:
360363.. code- block:: xml
361364 :caption: `/ website_airproof/ views/ new_page_template_templates.xml`
362365
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" >
364367 < xpath expr=" //div[@id='custom']" position=" after" >
365368 < div id =" airproof" > Airproof< / div>
366369 < / xpath>
0 commit comments