Skip to content

Commit a72b403

Browse files
committed
[FIX] Typos in "Page templates" and "Theme pages" example.
X-original-commit: 70a230b
1 parent 23326f1 commit a72b403

File tree

1 file changed

+46
-1
lines changed
  • content/developer/howtos/website_themes

1 file changed

+46
-1
lines changed

content/developer/howtos/website_themes/pages.rst

Lines changed: 46 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ page object.
124124
.. code-block:: xml
125125
:caption: ``/website_airproof/data/pages/about_us.xml``
126126
127+
<<<<<<< 23326f11955fceaede14c2bfdc0d5d601d5d1f5f
127128
<odoo noupdate="1">
128129
<record id="page_about_us" model="website.page">
129130
<field name="name">About us</field>
@@ -142,6 +143,48 @@ page object.
142143
</t>
143144
</field>
144145
</record>
146+
||||||| 0e78db48c1590e44f6a9d2818d6c3fa9534f11da
147+
<odoo>
148+
<data noupdate="1">
149+
<record id="page_about_us" model="website.page">
150+
<field name="name">About us</field>
151+
<field name="is_published" eval="True"/>
152+
<field name="key">website_airproof.page_about_us</field>
153+
<field name="url">/about-us</field>
154+
<field name="website_id" eval="1" />
155+
<field name="type">qweb</field>
156+
<field name="arch" type="xml">
157+
<t t-name="website_airproof.page_about_us">
158+
<t t-call="website.layout">
159+
<div id="wrap" class="oe_structure">
160+
<!-- Content -->
161+
</div>
162+
</t>
163+
</t>
164+
</field>
165+
</record>
166+
</data>
167+
=======
168+
<?xml version="1.0" encoding="utf-8"?>
169+
<odoo noupdate="1">
170+
<record id="page_about_us" model="website.page">
171+
<field name="name">About us</field>
172+
<field name="is_published" eval="True"/>
173+
<field name="key">website_airproof.page_about_us</field>
174+
<field name="url">/about-us</field>
175+
<field name="website_id" eval="1" />
176+
<field name="type">qweb</field>
177+
<field name="arch" type="xml">
178+
<t t-name="website_airproof.page_about_us">
179+
<t t-call="website.layout">
180+
<div id="wrap" class="oe_structure">
181+
<!-- Content -->
182+
</div>
183+
</t>
184+
</t>
185+
</field>
186+
</record>
187+
>>>>>>> fce78c2967971d52e54a966d5d534c58b2898e7f
145188
</odoo>
146189

147190
.. admonition:: Multiwebsite and `website_id`
@@ -325,8 +368,10 @@ Instantiate each building block (modified or not) for the page template:
325368
.. code-block:: xml
326369
:caption: `/website_airproof/views/new_page_template_templates.xml`
327370
328-
<template id="new_page_template_s_airproof_text_block_h1" inherit_id="website_airproof.s_airproof_text_block_h1" primary="True"/>
371+
<template id="new_page_template_airproof_faq_s_text_block_h1" inherit_id="website_airproof.s_airproof_text_block_h1" primary="True"/>
329372
<template id="new_page_template_airproof_faq_s_title" inherit_id="website.s_title" primary="True"/>
373+
<template id="new_page_template_airproof_faq_s_faq_collapse" inherit_id="website.s_faq_collapse" primary="True"/>
374+
<template id="new_page_template_airproof_faq_s_call_to_action" inherit_id="website.s_call_to_action" primary="True"/>
330375
331376
Then, create your page template with some `t-snippet-call` within an `#wrap` as explained above:
332377

0 commit comments

Comments
 (0)