From 0e4f38ae7dfc7d46639a30d52c0e50de304bf9a5 Mon Sep 17 00:00:00 2001 From: Brandon Mercier <113701731+bram-odoo@users.noreply.github.com> Date: Wed, 23 Jul 2025 08:52:20 +0000 Subject: [PATCH] [FIX] New page template creation method X-original-commit: b35b66a799238fd0b9b8c30cc8c95d03b241c801 --- .../developer/howtos/website_themes/pages.rst | 27 ++++++++++--------- 1 file changed, 15 insertions(+), 12 deletions(-) diff --git a/content/developer/howtos/website_themes/pages.rst b/content/developer/howtos/website_themes/pages.rst index d6363a2b40..2d924620d5 100644 --- a/content/developer/howtos/website_themes/pages.rst +++ b/content/developer/howtos/website_themes/pages.rst @@ -272,11 +272,11 @@ Create preset static page templates available from the New Page dialog window. **Declaration** The page templates has to be defined into the :file:`__manifest__.py` of the module through -`new_page_templates`: +`new_page_templates` and :file:`new_page_template_templates.xml`: .. code-block:: python :caption: `/website_airproof/__manifest__.py` - :emphasize-lines: 15-18 + :emphasize-lines: 11,16-19 { 'name': 'Airproof Theme', @@ -288,6 +288,7 @@ The page templates has to be defined into the :file:`__manifest__.py` of the mod 'depends': ['website'], 'data': [ # ... + 'views/new_page_template_templates.xml' ], 'assets': { # ... @@ -327,20 +328,22 @@ Instantiate each building block (modified or not) for the page template: -Then, create your page template with some `t-snippet-call` within an '#wrap' as explained above: +Then, create your page template with some `t-snippet-call` within an `#wrap` as explained above: .. code-block:: xml :caption: `/website_airproof/views/new_page_template_templates.xml` -