diff --git a/content/applications/websites/website/pages.rst b/content/applications/websites/website/pages.rst index 87348f548f..40c54c98ee 100644 --- a/content/applications/websites/website/pages.rst +++ b/content/applications/websites/website/pages.rst @@ -15,6 +15,8 @@ other hand, are generated dynamically. All pages generated automatically by Odoo you install an app or module (e.g., `/shop` or `/blog`) or publish a new product or blog post, are dynamic pages and are therefore managed differently. +.. _website/page_creation: + Page creation ============= @@ -24,14 +26,29 @@ page, proceed as follows: #. - Either open the **Website** app, click :guilabel:`+ New` in the top-right corner, then select :guilabel:`Page`; - Or go to :menuselection:`Website --> Site --> Pages` and click :guilabel:`New`. + #. In the :guilabel:`New Page` selection menu, click on a template. They are sorted by type : + + - :guilabel:`Basic` : Multi purpose page. A blank page is also available to start from scratch. + - :guilabel:`About` : Information about your brand. + - :guilabel:`Landing Pages` : Summary of company content and info. + - :guilabel:`Gallery` : Photos and media showcase. + - :guilabel:`Services` : Focus on what you're selling and contact. + - :guilabel:`Pricing Plans` : Highlight on subscription and prices. + - :guilabel:`Team` : The people behind your company. + - :guilabel:`Custom`: To add a template to this category, open a page of your choice, go to + :menuselection:`Site --> Properties`, type a :guilabel:`Page Title`, enable :guilabel:`Is a + template` and click :guilabel:`Save`. + + .. note:: + Disable :guilabel:`Add to menu` if the page should not appear in the menu. + #. Enter a :guilabel:`Page Title`; this title is used in the menu and the page's URL. #. Click :guilabel:`Create`. - #. Customize the page's content and appearance using the website builder, then click + #. If needed, customize the page's content and appearance using the website editor, then click :guilabel:`Save`. #. :ref:`Publish ` the page. -.. note:: - Disable :guilabel:`Add to menu` if the page should not appear in the menu. +.. _website/page_management: Page management =============== @@ -41,7 +58,7 @@ Page management Publishing/unpublishing pages ----------------------------- -Pages need to be published to make them accessible to website visitors. To publish or unpublish a +Pages need to be published to make them visible to website visitors. To publish or unpublish a page, access it and toggle the switch in the upper-right corner from :guilabel:`Unpublished` to :guilabel:`Published`, or vice versa. @@ -51,19 +68,12 @@ to :guilabel:`Published`, or vice versa. .. note:: It is also possible to: - - publish/unpublish a page from the :ref:`page properties `, where you + - Publish/unpublish a page from the :ref:`page properties `, where you can define a publishing date and/or restrict the page's visibility if needed; - - publish/unpublish several pages at once: go to :menuselection:`Website --> Site --> Pages`, + - Publish/unpublish several pages at once: go to :menuselection:`Website --> Site --> Pages`, select the pages, then click :guilabel:`Action` and select :guilabel:`Publish` or :guilabel:`Unpublish`. -Homepage --------- - -When you create a website, Odoo creates a dedicated :guilabel:`Home` page by default, but you can -define any website page as your homepage. To do so, go to :menuselection:`Website --> Configuration ---> Settings`, then, in the :guilabel:`Website info` section, define the URL of the desired page in -the field :guilabel:`Homepage URL` (e.g., `/shop`). Alternatively, you can define any :ref:`static page ` as your homepage by going to :menuselection:`Website --> Site --> Properties`. Select the :guilabel:`Publish` tab and enable @@ -75,44 +85,45 @@ Page properties --------------- To modify a :ref:`static page's ` properties, access the page you wish to -modify, then go to :menuselection:`Site --> Properties`. - -The :guilabel:`Name` tab allows you to: - -- rename the page using the :guilabel:`Page Name` field; -- modify the :guilabel:`Page URL`. In this case, you can redirect the old URL to the new one if - needed. To do so, enable :guilabel:`Redirect Old URL`, then select the :guilabel:`Type` of - :ref:`redirection `: - - - :guilabel:`301 Moved permanently`: to redirect the page permanently; - - :guilabel:`302 Moved temporarily`: to redirect the page temporarily. - - .. image:: pages/page-redirection.png - :alt: Redirect old URL - -You can further adapt the page's properties in the :guilabel:`Publish` tab: - -- :guilabel:`Show in Top Menu`: Disable if you don't want the page to appear in the menu; -- :guilabel:`Use as Homepage`: Enable if you want the page to be the homepage of your website; -- :guilabel:`Indexed`: Disable if you don't want the page to be shown in search engine results; -- :guilabel:`Published`: Enable to publish the page; -- :guilabel:`Publishing Date`: To publish the page at a specific moment, select the date, - click the clock icon to set the time, then click the green check mark to validate your selection. -- :guilabel:`Visibility`: Select who can access the page: - - - :guilabel:`All` - - :guilabel:`Signed In` - - :guilabel:`Restricted Group`: Select the :doc:`user access group(s) - ` in the :guilabel:`Authorized group` field. - - :guilabel:`With Password`: Enter the password in the :guilabel:`Password` field. +modify, then go to :menuselection:`Site --> Properties`, where you can change the following +properties: + + - :guilabel:`Page Title` : type the desired name for the page in the field + - :guilabel:`Page URL` : customize the page URL in the field. In this case, you can redirect the + old URL to the new one if needed. To do so, enable :guilabel:`Redirect old URL`, then select the + :guilabel:`Type` of :ref:`redirection `: + + - :guilabel:`301 Moved permanently`: to redirect the page permanently. + - :guilabel:`302 Moved temporarily`: to redirect the page temporarily. + + .. image:: pages/page-properties.png + :alt: Redirect old URL + + - :guilabel:`In Menu` : Disable if you don't want the page to appear in the menu. + - :guilabel:`Is Homepage`: Enable if you want the page to be the homepage of your website. + - :guilabel:`Published`: Enable to publish the page. + - :guilabel:`Publishing Date`: To publish the page at a specific time, select the date. Click the + field to set the date and time, then press Enter on your keyboard to validate your selection. + - :guilabel:`Indexed`: Disable if you don't want the page to appear in search engine results. + - :guilabel:`Visibility`: Select who can access the page: + + - :guilabel:`Public`: Everyone can access the page. + - :guilabel:`Signed In` users only can access the page. + - :guilabel:`Restricted Group`: Select the :doc:`user access group(s) + ` in the :guilabel:`Authorized group` field. + - :guilabel:`With Password`: Type the password required to access the page in the + :guilabel:`Password` field. .. tip:: - *Some* of these properties can also be modified from :menuselection:`Website --> Site --> Pages`. + *Some* of these properties can also be modified in batch from + :menuselection:`Website --> Site --> Pages`. + +.. _website/duplicate-page: Duplicating pages ~~~~~~~~~~~~~~~~~ -To duplicate a page, access the page, then go to :menuselection:`Site --> Properties` and click +To duplicate a page, access the page, then go to :menuselection:`Site --> Properties`, and click :guilabel:`Duplicate Page`. Enter a :guilabel:`Page Name`, then click :guilabel:`OK`. By default, the new page is added after the duplicated page in the menu, but you can remove it from the menu or change its position using the :doc:`menu editor `. @@ -124,15 +135,14 @@ Deleting pages To delete a page, proceed as follows: -#. Access the page, then go to :menuselection:`Site --> Properties` and click :guilabel:`Delete - Page`. -#. A pop-up window appears on the screen with all links referring to the page you want to delete, - organized by category. To ensure website visitors don't land on a 404 error page, you must update +#. Access the page, then go to :menuselection:`Site --> Properties` and click :guilabel:`Delete Page`. +#. A pop-up window shows all links referring to the page you want to delete, + organized by category. To ensure website visitors don't land on an error page, you must update all the links on your website referring to the page. To do so, expand a category, then click on a link to open it in a new window. Alternatively, you can set up a :ref:`redirection ` for the deleted page. #. Once you have updated the links (or set up a :ref:`redirection `), - select the :guilabel:`I am sure about this` check box, then click :guilabel:`OK`. + tick the :guilabel:`I am sure about this` check box, then click :guilabel:`OK`. .. _website/URL-redirection: diff --git a/content/applications/websites/website/pages/page-properties.png b/content/applications/websites/website/pages/page-properties.png new file mode 100644 index 0000000000..8c0b972ad8 Binary files /dev/null and b/content/applications/websites/website/pages/page-properties.png differ diff --git a/content/applications/websites/website/pages/page-redirection.png b/content/applications/websites/website/pages/page-redirection.png deleted file mode 100644 index e5fbb3a5cc..0000000000 Binary files a/content/applications/websites/website/pages/page-redirection.png and /dev/null differ diff --git a/content/applications/websites/website/pages/un-published_toggle.png b/content/applications/websites/website/pages/un-published_toggle.png index 54ac8673ca..8bfa3d31e2 100644 Binary files a/content/applications/websites/website/pages/un-published_toggle.png and b/content/applications/websites/website/pages/un-published_toggle.png differ