Skip to content

[IMP] Website: update pages page #13605

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: 18.0
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
110 changes: 60 additions & 50 deletions content/applications/websites/website/pages.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
.. _website/page_creation:
.. _website/pages/page_creation:

(nitpicking, to fit our standard anchor names: app name/file name/ anchor name to try and make sure anchor names stay unique throughout the whole doc long-term 😉 )

Also, I can't comment on this because you didn't change it but:

  • I would change the anchor name on line 10 in the same way.
  • I would add a ref (to the homepage section) on the word homepage on line 12.
  • Same for blog post on line 15 (I would use a doc link there that refers to the blog doc page).


Page creation
=============

Expand All @@ -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 <website/un-publish-page>` the page.

.. note::
Disable :guilabel:`Add to menu` if the page should not appear in the menu.
.. _website/page_management:

Page management
===============
Expand All @@ -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.

Expand All @@ -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 <website/page_properties>`, where you
- Publish/unpublish a page from the :ref:`page properties <website/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 <website/page_type>` as your homepage by going
to :menuselection:`Website --> Site --> Properties`. Select the :guilabel:`Publish` tab and enable
Expand All @@ -75,44 +85,45 @@ Page properties
---------------

To modify a :ref:`static page's <website/page_type>` 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 <website/URL-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)
</applications/general/users/access_rights>` 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 <website/URL-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)
</applications/general/users/access_rights>` 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 <pages/menus>`.
Expand All @@ -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
<website/URL-redirection>` for the deleted page.
#. Once you have updated the links (or set up a :ref:`redirection <website/URL-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:

Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.