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` -