Skip to content

Commit 6fa449a

Browse files
author
guillaume gallant (guga)
committed
[IMP] Website: update pages page
task-4459299
1 parent 2f436b8 commit 6fa449a

File tree

4 files changed

+60
-50
lines changed

4 files changed

+60
-50
lines changed

content/applications/websites/website/pages.rst

Lines changed: 60 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ other hand, are generated dynamically. All pages generated automatically by Odoo
1515
you install an app or module (e.g., `/shop` or `/blog`) or publish a new product or blog post, are
1616
dynamic pages and are therefore managed differently.
1717

18+
.. _website/page_creation:
19+
1820
Page creation
1921
=============
2022

@@ -24,14 +26,29 @@ page, proceed as follows:
2426
#. - Either open the **Website** app, click :guilabel:`+ New` in the top-right corner, then select
2527
:guilabel:`Page`;
2628
- Or go to :menuselection:`Website --> Site --> Pages` and click :guilabel:`New`.
29+
#. In the :guilabel:`New Page` selection menu, click on a template. They are sorted by type :
30+
31+
- :guilabel:`Basic` : Multi purpose page. A blank page is also available to start from scratch.
32+
- :guilabel:`About` : Information about your brand.
33+
- :guilabel:`Landing Pages` : Summary of company content and info.
34+
- :guilabel:`Gallery` : Photos and media showcase.
35+
- :guilabel:`Services` : Focus on what you're selling and contact.
36+
- :guilabel:`Pricing Plans` : Highlight on subscription and prices.
37+
- :guilabel:`Team` : The people behind your company.
38+
- :guilabel:`Custom`: To add a template to this category, open a page of your choice, go to
39+
:menuselection:`Site --> Properties`, type a :guilabel:`Page Title`, enable :guilabel:`Is a
40+
template` and click :guilabel:`Save`.
41+
42+
.. note::
43+
Disable :guilabel:`Add to menu` if the page should not appear in the menu.
44+
2745
#. Enter a :guilabel:`Page Title`; this title is used in the menu and the page's URL.
2846
#. Click :guilabel:`Create`.
29-
#. Customize the page's content and appearance using the website builder, then click
47+
#. If needed, customize the page's content and appearance using the website editor, then click
3048
:guilabel:`Save`.
3149
#. :ref:`Publish <website/un-publish-page>` the page.
3250

33-
.. note::
34-
Disable :guilabel:`Add to menu` if the page should not appear in the menu.
51+
.. _website/page_management:
3552

3653
Page management
3754
===============
@@ -41,7 +58,7 @@ Page management
4158
Publishing/unpublishing pages
4259
-----------------------------
4360

44-
Pages need to be published to make them accessible to website visitors. To publish or unpublish a
61+
Pages need to be published to make them visible to website visitors. To publish or unpublish a
4562
page, access it and toggle the switch in the upper-right corner from :guilabel:`Unpublished`
4663
to :guilabel:`Published`, or vice versa.
4764

@@ -51,19 +68,12 @@ to :guilabel:`Published`, or vice versa.
5168
.. note::
5269
It is also possible to:
5370

54-
- publish/unpublish a page from the :ref:`page properties <website/page_properties>`, where you
71+
- Publish/unpublish a page from the :ref:`page properties <website/page_properties>`, where you
5572
can define a publishing date and/or restrict the page's visibility if needed;
56-
- publish/unpublish several pages at once: go to :menuselection:`Website --> Site --> Pages`,
73+
- Publish/unpublish several pages at once: go to :menuselection:`Website --> Site --> Pages`,
5774
select the pages, then click :guilabel:`Action` and select :guilabel:`Publish` or
5875
:guilabel:`Unpublish`.
5976

60-
Homepage
61-
--------
62-
63-
When you create a website, Odoo creates a dedicated :guilabel:`Home` page by default, but you can
64-
define any website page as your homepage. To do so, go to :menuselection:`Website --> Configuration
65-
--> Settings`, then, in the :guilabel:`Website info` section, define the URL of the desired page in
66-
the field :guilabel:`Homepage URL` (e.g., `/shop`).
6777

6878
Alternatively, you can define any :ref:`static page <website/page_type>` as your homepage by going
6979
to :menuselection:`Website --> Site --> Properties`. Select the :guilabel:`Publish` tab and enable
@@ -75,44 +85,45 @@ Page properties
7585
---------------
7686

7787
To modify a :ref:`static page's <website/page_type>` properties, access the page you wish to
78-
modify, then go to :menuselection:`Site --> Properties`.
79-
80-
The :guilabel:`Name` tab allows you to:
81-
82-
- rename the page using the :guilabel:`Page Name` field;
83-
- modify the :guilabel:`Page URL`. In this case, you can redirect the old URL to the new one if
84-
needed. To do so, enable :guilabel:`Redirect Old URL`, then select the :guilabel:`Type` of
85-
:ref:`redirection <website/URL-redirection>`:
86-
87-
- :guilabel:`301 Moved permanently`: to redirect the page permanently;
88-
- :guilabel:`302 Moved temporarily`: to redirect the page temporarily.
89-
90-
.. image:: pages/page-redirection.png
91-
:alt: Redirect old URL
92-
93-
You can further adapt the page's properties in the :guilabel:`Publish` tab:
94-
95-
- :guilabel:`Show in Top Menu`: Disable if you don't want the page to appear in the menu;
96-
- :guilabel:`Use as Homepage`: Enable if you want the page to be the homepage of your website;
97-
- :guilabel:`Indexed`: Disable if you don't want the page to be shown in search engine results;
98-
- :guilabel:`Published`: Enable to publish the page;
99-
- :guilabel:`Publishing Date`: To publish the page at a specific moment, select the date,
100-
click the clock icon to set the time, then click the green check mark to validate your selection.
101-
- :guilabel:`Visibility`: Select who can access the page:
102-
103-
- :guilabel:`All`
104-
- :guilabel:`Signed In`
105-
- :guilabel:`Restricted Group`: Select the :doc:`user access group(s)
106-
</applications/general/users/access_rights>` in the :guilabel:`Authorized group` field.
107-
- :guilabel:`With Password`: Enter the password in the :guilabel:`Password` field.
88+
modify, then go to :menuselection:`Site --> Properties`, where you can change the following
89+
properties:
90+
91+
- :guilabel:`Page Title` : type the desired name for the page in the field
92+
- :guilabel:`Page URL` : customize the page URL in the field. In this case, you can redirect the
93+
old URL to the new one if needed. To do so, enable :guilabel:`Redirect old URL`, then select the
94+
:guilabel:`Type` of :ref:`redirection <website/URL-redirection>`:
95+
96+
- :guilabel:`301 Moved permanently`: to redirect the page permanently.
97+
- :guilabel:`302 Moved temporarily`: to redirect the page temporarily.
98+
99+
.. image:: pages/page-properties.png
100+
:alt: Redirect old URL
101+
102+
- :guilabel:`In Menu` : Disable if you don't want the page to appear in the menu.
103+
- :guilabel:`Is Homepage`: Enable if you want the page to be the homepage of your website.
104+
- :guilabel:`Published`: Enable to publish the page.
105+
- :guilabel:`Publishing Date`: To publish the page at a specific time, select the date. Click the
106+
field to set the date and time, then press Enter on your keyboard to validate your selection.
107+
- :guilabel:`Indexed`: Disable if you don't want the page to appear in search engine results.
108+
- :guilabel:`Visibility`: Select who can access the page:
109+
110+
- :guilabel:`Public`: Everyone can access the page.
111+
- :guilabel:`Signed In` users only can access the page.
112+
- :guilabel:`Restricted Group`: Select the :doc:`user access group(s)
113+
</applications/general/users/access_rights>` in the :guilabel:`Authorized group` field.
114+
- :guilabel:`With Password`: Type the password required to access the page in the
115+
:guilabel:`Password` field.
108116

109117
.. tip::
110-
*Some* of these properties can also be modified from :menuselection:`Website --> Site --> Pages`.
118+
*Some* of these properties can also be modified in batch from
119+
:menuselection:`Website --> Site --> Pages`.
120+
121+
.. _website/duplicate-page:
111122

112123
Duplicating pages
113124
~~~~~~~~~~~~~~~~~
114125

115-
To duplicate a page, access the page, then go to :menuselection:`Site --> Properties` and click
126+
To duplicate a page, access the page, then go to :menuselection:`Site --> Properties`, and click
116127
:guilabel:`Duplicate Page`. Enter a :guilabel:`Page Name`, then click :guilabel:`OK`. By default,
117128
the new page is added after the duplicated page in the menu, but you can remove it from the menu or
118129
change its position using the :doc:`menu editor <pages/menus>`.
@@ -124,15 +135,14 @@ Deleting pages
124135

125136
To delete a page, proceed as follows:
126137

127-
#. Access the page, then go to :menuselection:`Site --> Properties` and click :guilabel:`Delete
128-
Page`.
129-
#. A pop-up window appears on the screen with all links referring to the page you want to delete,
130-
organized by category. To ensure website visitors don't land on a 404 error page, you must update
138+
#. Access the page, then go to :menuselection:`Site --> Properties` and click :guilabel:`Delete Page`.
139+
#. A pop-up window shows all links referring to the page you want to delete,
140+
organized by category. To ensure website visitors don't land on an error page, you must update
131141
all the links on your website referring to the page. To do so, expand a category, then click on a
132142
link to open it in a new window. Alternatively, you can set up a :ref:`redirection
133143
<website/URL-redirection>` for the deleted page.
134144
#. Once you have updated the links (or set up a :ref:`redirection <website/URL-redirection>`),
135-
select the :guilabel:`I am sure about this` check box, then click :guilabel:`OK`.
145+
tick the :guilabel:`I am sure about this` check box, then click :guilabel:`OK`.
136146

137147
.. _website/URL-redirection:
138148

Loading
Binary file not shown.
Loading

0 commit comments

Comments
 (0)