From 4d4d75b440b01c620fa77832bb395eadb225a76a Mon Sep 17 00:00:00 2001 From: Brandon Mercier <113701731+bram-odoo@users.noreply.github.com> Date: Mon, 24 Feb 2025 12:24:40 +0000 Subject: [PATCH] [IMP] Website Themes - Layout page [IMP] Website Themes - Layout page [FIX] Corrections for ci [FIX] Ci failure [IMP] Small corrections - Reorder the Xpath examples. - Add an explanation for the move directive [ADD] Website Themes - Media section [IMP] Website Themes - Layout section modifications [IMP] Anchors for CEDE's references (Tutorials) [IMP] Line width + visibility conditions alert type [IMP] Website Themes - Layout : Anchors correction Revert "[ADD] Website Themes - Media section" This reverts commit 4567cfe114251cdc9f263b8e97f0f988945f4db8. [FIX] Update anchors pattern [FIX] Media company logo reference closes odoo/documentation#12475 X-original-commit: 53b2db4ab50738c128fc1ab3ada03a4a0d43d2ca Signed-off-by: Brandon Mercier (bram) --- .../howtos/website_themes/layout.rst | 368 ++++++++++++++---- .../layout/screenshot-visibility.png | Bin 0 -> 4384 bytes 2 files changed, 297 insertions(+), 71 deletions(-) create mode 100644 content/developer/howtos/website_themes/layout/screenshot-visibility.png diff --git a/content/developer/howtos/website_themes/layout.rst b/content/developer/howtos/website_themes/layout.rst index 3b5c79d71..5ebfbd2e9 100644 --- a/content/developer/howtos/website_themes/layout.rst +++ b/content/developer/howtos/website_themes/layout.rst @@ -10,6 +10,8 @@ In this chapter, you will learn how to: - Add a copyright section. - Improve your website's responsiveness. +.. _website_themes/layout/default : + Default ======= @@ -41,12 +43,14 @@ an `` tag. .. note:: - Using precise file names is important to find information through all modules quickly. File names - should only contain lowercase alphanumerics and underscores. + Using precise template names is important to find information through all modules quickly. + Template names should only contain lowercase alphanumerics and underscores. Always add an empty line at the end of your file. This can be done automatically by configuring your IDE. +.. _website_themes/layout/xpath : + XPath ===== @@ -71,7 +75,7 @@ A view is coded the following way. * - id - ID of the modified view * - inherited_id - - ID of the standard view + - ID of the standard view (using the following pattern: `module.template`) * - name - Human-readable name of the modified view @@ -99,6 +103,8 @@ For each XPath, you modify two attributes: **expression** and **position**. all inheritance at a glance. As final *XML IDs* are prefixed by the module that creates them, there is no overlap. +.. _website_themes/layout/xpath/expressions : + Expressions ----------- @@ -137,6 +143,8 @@ expression to target the right element. The most useful ones are listed below. * - \*[@t-call="t-call"] - Selects a specific t-call. +.. _website_themes/layout/xpath/position : + Position -------- @@ -162,32 +170,6 @@ below: - Adds the XPath content inside an attribute. .. example:: - This XPath adds a `
` before the `