8000 [FIX] Correction of custom shape addition method · odoo/documentation@fbcc2be · GitHub
[go: up one dir, main page]

Skip to content

Commit fbcc2be

Browse files
committed
[FIX] Correction of custom shape addition method
closes #13428 Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
1 parent c2b2849 commit fbcc2be

File tree

1 file changed

+16
-8
lines changed

1 file changed

+16
-8
lines changed

content/developer/howtos/website_themes/shapes.rst

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -275,12 +275,20 @@ Lastly, add your shape to the list of shapes available on the Website Builder.
275275
.. code-block:: xml
276276
:caption: ``/website_airproof/views/snippets/options.xml``
277277
278-
<template id="snippet_options_background_options" inherit_id="website.snippet_options_background_options" name="Shapes">
279-
<xpath expr="//*[hasclass('o_we_shape_menu')]/*[last()]" position="after">
280-
<we-select-page string="Theme">
281-
<we-button data-shape="illustration/hexagons/01" data-select-label="Hexagon 01"/>
282-
</we-select-page>
283-
</xpath>
278+
<template id="snippet_options_background_options" inherit_id="website.snippet_options_background_options" name="Airproof - Shapes">
279+
<xpath expr="//*[hasclass('o_we_bg_shape_menu')]/header[hasclass('o_pager_nav')]//*[hasclass('o_pager_nav_btn')][last()]" position="after">
280+
<button type="button" class="o_pager_nav_btn p-0 text-uppercase" data-scroll-to="x_wd_scroll_bgshapes_aiproof">
281+
<span class="w-100">Airproof</span>
282+
</button>
283+
</xpath>
284+
<xpath expr="//*[hasclass('o_we_bg_shape_menu')]/div[hasclass('o_pager_container')]" position="inside">
285+
<div class="x_scroll_bgshapes_klingspor">
286+
<we-title>Airproof</we-title>
287+
<we-select-page string="Airproof">
288+
<we-button data-shape="illustration/airproof/01" data-select-label="Airproof 01"/>
289+
</we-select-page>
290+
</div>
291+
</xpath>
284292
</template>
285293
286294
.. _website_themes/shapes/bg/custom/use:
@@ -292,8 +300,8 @@ In your XML pages, you can use your shape in the same way as the others.
292300

293301
.. code-block:: xml
294302
295-
<section class="..." data-oe-shape-data="{'shape': 'illustration/hexagons/01', 'colors': 'c4': '#8595A2', 'c5': 'rgba(0, 255, 0)'}">
296-
<div class="o_we_shape o_illustration_hexagons_01"/>
303+
<section class="..." data-oe-shape-data="{'shape': 'illustration/airproof/01', 'colors': 'c4': '#8595A2', 'c5': 'rgba(0, 255, 0)'}">
304+
<div class="o_we_shape o_illustration_airproof_01"/>
297305
<div class="container">
298306
<!-- Content -->
299307
</div>

0 commit comments

Comments
 (0)
0