Skip to content

Commit 2b4e7dc

Browse files
committed
[FIX] Typos in "Page templates" and "Theme pages" example.
closes #14500 X-original-commit: e07e9f9 Signed-off-by: Brandon Mercier (bram) <[email protected]>
1 parent 5ccbd97 commit 2b4e7dc

File tree

1 file changed

+21
-18
lines changed
  • content/developer/howtos/website_themes

1 file changed

+21
-18
lines changed

content/developer/howtos/website_themes/pages.rst

Lines changed: 21 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -124,24 +124,25 @@ page object.
124124
.. code-block:: xml
125125
:caption: ``/website_airproof/data/pages/about_us.xml``
126126
127+
<?xml version="1.0" encoding="utf-8"?>
127128
<odoo noupdate="1">
128-
<record id="page_about_us" model="website.page">
129-
<field name="name">About us</field>
130-
<field name="is_published" eval="True"/>
131-
<field name="key">website_airproof.page_about_us</field>
132-
<field name="url">/about-us</field>
133-
<field name="website_id" eval="1" />
134-
<field name="type">qweb</field>
135-
<field name="arch" type="xml">
136-
<t t-name="website_airproof.page_about_us">
137-
<t t-call="website.layout">
138-
<div id="wrap" class="oe_structure">
139-
<!-- Content -->
140-
</div>
141-
</t>
142-
</t>
143-
</field>
144-
</record>
129+
<record id="page_about_us" model="website.page">
130+
<field name="name">About us</field>
131+
<field name="is_published" eval="True"/>
132+
<field name="key">website_airproof.page_about_us</field>
133+
<field name="url">/about-us</field>
134+
<field name="website_id" eval="1" />
135+
<field name="type">qweb</field>
136+
<field name="arch" type="xml">
137+
<t t-name="website_airproof.page_about_us">
138+
<t t-call="website.layout">
139+
<div id="wrap" class="oe_structure">
140+
<!-- Content -->
141+
</div>
142+
</t>
143+
</t>
144+
</field>
145+
</record>
145146
</odoo>
146147
147148
.. admonition:: Multiwebsite and `website_id`
@@ -325,8 +326,10 @@ Instantiate each building block (modified or not) for the page template:
325326
.. code-block:: xml
326327
:caption: `/website_airproof/views/new_page_template_templates.xml`
327328
328-
<template id="new_page_template_s_airproof_text_block_h1" inherit_id="website_airproof.s_airproof_text_block_h1" primary="True"/>
329+
<template id="new_page_template_airproof_faq_s_text_block_h1" inherit_id="website_airproof.s_airproof_text_block_h1" primary="True"/>
329330
<template id="new_page_template_airproof_faq_s_title" inherit_id="website.s_title" primary="True"/>
331+
<template id="new_page_template_airproof_faq_s_faq_collapse" inherit_id="website.s_faq_collapse" primary="True"/>
332+
<template id="new_page_template_airproof_faq_s_call_to_action" inherit_id="website.s_call_to_action" primary="True"/>
330333
331334
Then, create your page template with some `t-snippet-call` within an `#wrap` as explained above:
332335

0 commit comments

Comments
 (0)