mirror of
https://github.com/odoo/documentation.git
synced 2026-03-26 13:59:55 +07:00
[FIX] howtos/website_themes: Typo (Theming, layout and pages)
- Theming: bundle _assets_bootstrap - Theming: Minified external libs - Layout: Move example - indentation - Layout: Remove useless version number - Pages: 404 additional_title closes odoo/documentation#16583 Signed-off-by: Brandon Mercier (bram) <bram@odoo.com>
This commit is contained in:
@@ -228,10 +228,10 @@ below:
|
|||||||
.. code-block:: xml
|
.. code-block:: xml
|
||||||
|
|
||||||
<xpath expr="//*[hasclass('o_wsale_products_main_row')]" position="before">
|
<xpath expr="//*[hasclass('o_wsale_products_main_row')]" position="before">
|
||||||
<xpath expr="//t[@t-if='opt_wsale_categories_top']" position="move" />
|
<xpath expr="//t[@t-if='opt_wsale_categories_top']" position="move" />
|
||||||
</xpath>
|
</xpath>
|
||||||
<xpath expr="//*[hasclass('o_wsale_products_main_row')]" position="before">
|
<xpath expr="//*[hasclass('o_wsale_products_main_row')]" position="before">
|
||||||
<div><!-- Content --></div>
|
<div><!-- Content --></div>
|
||||||
</xpath>
|
</xpath>
|
||||||
|
|
||||||
| **Bad example:**
|
| **Bad example:**
|
||||||
@@ -239,8 +239,8 @@ below:
|
|||||||
.. code-block:: xml
|
.. code-block:: xml
|
||||||
|
|
||||||
<xpath expr="//*[hasclass('o_wsale_products_main_row')]" position="before">
|
<xpath expr="//*[hasclass('o_wsale_products_main_row')]" position="before">
|
||||||
<xpath expr="//t[@t-if='opt_wsale_categories_top']" position="move" />
|
<xpath expr="//t[@t-if='opt_wsale_categories_top']" position="move" />
|
||||||
<div><!-- Content --></div>
|
<div><!-- Content --></div>
|
||||||
</xpath>
|
</xpath>
|
||||||
|
|
||||||
|
|
||||||
@@ -729,7 +729,7 @@ Responsive
|
|||||||
==========
|
==========
|
||||||
|
|
||||||
Odoo in general relies on the Bootstrap framework which eases the responsiveness of your website on
|
Odoo in general relies on the Bootstrap framework which eases the responsiveness of your website on
|
||||||
desktop and mobile. On Odoo 16, you can mainly take action on 3 aspects:
|
desktop and mobile. You can mainly take action on 3 aspects:
|
||||||
|
|
||||||
#. Automatic computed font sizes depending on the device
|
#. Automatic computed font sizes depending on the device
|
||||||
#. Column sizes on desktop (the columns are automatically stacked on mobile)
|
#. Column sizes on desktop (the columns are automatically stacked on mobile)
|
||||||
|
|||||||
@@ -100,7 +100,7 @@ Alternatively, replace the default content of these pages using XPath.
|
|||||||
|
|
||||||
<template id="404" inherit_id="http_routing.404">
|
<template id="404" inherit_id="http_routing.404">
|
||||||
<xpath expr="//*[@id='wrap']" position="replace">
|
<xpath expr="//*[@id='wrap']" position="replace">
|
||||||
<t t-set="additional_title" t-value="'404 - Not found'"/>
|
<t t-set="additional_title">404 - Not found</t>
|
||||||
|
|
||||||
<div id="wrap" class="oe_structure">
|
<div id="wrap" class="oe_structure">
|
||||||
<!-- Content -->
|
<!-- Content -->
|
||||||
|
|||||||
@@ -661,7 +661,7 @@ This is a non-exhaustive list of the frequently used bundles for a website:
|
|||||||
* - website.assets_wysiwyg
|
* - website.assets_wysiwyg
|
||||||
- Add your JS files related to the Website Builder options behaviors (for instance, a custom
|
- Add your JS files related to the Website Builder options behaviors (for instance, a custom
|
||||||
method for your custom building block)
|
method for your custom building block)
|
||||||
* - website.assets_wysiwyg
|
* - website._assets_bootstrap
|
||||||
- If you need to extend Boostrap through the Bootstrap Utilities API, for example
|
- If you need to extend Boostrap through the Bootstrap Utilities API, for example
|
||||||
|
|
||||||
.. _theming/assets/styles:
|
.. _theming/assets/styles:
|
||||||
@@ -738,7 +738,7 @@ brings the benefit of a better developer experience with better integration with
|
|||||||
|
|
||||||
.. tip::
|
.. tip::
|
||||||
- Use a linter (JSHint, ...).
|
- Use a linter (JSHint, ...).
|
||||||
- Never add minified JavaScript libraries.
|
- Always add minified JavaScript libraries.
|
||||||
- Add `'use strict';` at the top of every old-style module (this is automatic for new-style
|
- Add `'use strict';` at the top of every old-style module (this is automatic for new-style
|
||||||
modules).
|
modules).
|
||||||
- Use `js_` prefixed CSS classes on elements you target with JavaScript.
|
- Use `js_` prefixed CSS classes on elements you target with JavaScript.
|
||||||
|
|||||||
Reference in New Issue
Block a user