Skip to content

Commit e6a70f2

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

File tree

4 files changed

+88
-75
lines changed

4 files changed

+88
-75
lines changed

content/applications/websites/website/pages.rst

Lines changed: 88 additions & 75 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,15 @@ Pages
77
Odoo allows you to create pages for your website and customize their content and appearance to your
88
needs.
99

10-
.. _website/page_type:
10+
.. _website/pages/page_type:
1111

1212
**Static** pages have stable content, such as the homepage. You can manually create new ones, define
13-
their URLs, adapt their :ref:`properties <website/page_properties>`, etc. **Dynamic** pages, on the
14-
other hand, are generated dynamically. All pages generated automatically by Odoo, for example, when
15-
you install an app or module (e.g., `/shop` or `/blog`) or publish a new product or blog post, are
16-
dynamic pages and are therefore managed differently.
13+
their URLs, adapt their :ref:`properties <website/pages/page_management>`, etc. **Dynamic** pages,
14+
on the other hand, are generated dynamically. All pages generated automatically by Odoo, for example
15+
, when you install an app or module (e.g., `/shop` or `/blog`) or publish a new product or
16+
:doc:`blog post <../blog>`, are dynamic pages and are therefore managed differently.
17+
18+
.. _website/pages/page_creation:
1719

1820
Page creation
1921
=============
@@ -24,24 +26,40 @@ 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 select a custom template. To add a template to this category, open the
39+
page you want to save as a template, then go to :menuselection:`Site --> Properties`, enter
40+
the :guilabel:`Page Title`, :ref:`edit the page's properties <website/pages/page_properties>`
41+
, enable :guilabel:`Is a template`, and click :guilabel:`Save`.
42+
2743
#. Enter a :guilabel:`Page Title`; this title is used in the menu and the page's URL.
2844
#. Click :guilabel:`Create`.
29-
#. Customize the page's content and appearance using the website builder, then click
30-
:guilabel:`Save`.
31-
#. :ref:`Publish <website/un-publish-page>` the page.
45+
#. If needed, :doc:`customize the page's content and appearance <web_design>` using the website
46+
editor, then click :guilabel:`Save`.
47+
#. :ref:`Publish <website/pages/un-publish-page>` the page.
3248

33-
.. note::
49+
.. tip::
3450
Disable :guilabel:`Add to menu` if the page should not appear in the menu.
3551

52+
.. _website/pages/page_management:
53+
3654
Page management
3755
===============
3856

39-
.. _website/un-publish-page:
57+
.. _website/pages/un-publish-page:
4058

4159
Publishing/unpublishing pages
4260
-----------------------------
4361

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

@@ -51,108 +69,103 @@ to :guilabel:`Published`, or vice versa.
5169
.. note::
5270
It is also possible to:
5371

54-
- publish/unpublish a page from the :ref:`page properties <website/page_properties>`, where you
55-
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`,
72+
- Publish/unpublish a page from the :ref:`page properties <website/pages/page_properties>`,
73+
where you can define a publishing date and/or restrict the page's visibility if needed;
74+
- Publish/unpublish several pages at once: go to :menuselection:`Website --> Site --> Pages`,
5775
select the pages, then click :guilabel:`Action` and select :guilabel:`Publish` or
5876
:guilabel:`Unpublish`.
5977

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`).
6778

68-
Alternatively, you can define any :ref:`static page <website/page_type>` as your homepage by going
69-
to :menuselection:`Website --> Site --> Properties`. Select the :guilabel:`Publish` tab and enable
70-
:guilabel:`Use as Homepage`.
79+
Alternatively, you can define any :ref:`static page <website/pages/page_type>` as your homepage by
80+
going to :menuselection:`Website --> Site --> Properties`. Select the :guilabel:`Publish` tab and
81+
enable :guilabel:`Use as Homepage`.
7182

72-
.. _website/page_properties:
83+
.. _website/pages/page_properties:
7384

7485
Page properties
7586
---------------
7687

77-
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`.
88+
To modify a :ref:`static page's <website/pages/page_type>` properties, access the page you wish to
89+
modify, then go to :menuselection:`Site --> Properties`, where you can change the following
90+
properties:
7991

80-
The :guilabel:`Name` tab allows you to:
92+
- :guilabel:`Page URL` : Modify 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/pages/URL-redirection>`:
8195

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>`:
96+
- :guilabel:`301 Moved permanently`: to redirect the page permanently.
97+
- :guilabel:`302 Moved temporarily`: to redirect the page temporarily.
8698

87-
- :guilabel:`301 Moved permanently`: to redirect the page permanently;
88-
- :guilabel:`302 Moved temporarily`: to redirect the page temporarily.
99+
.. image:: pages/page-properties.png
100+
:alt: Redirect old URL
89101

90-
.. image:: pages/page-redirection.png
91-
:alt: Redirect old URL
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 date and time, click the field,
106+
set the date and time, then press **Enter** or click :guilabel:`Apply` 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:
92109

93-
You can further adapt the page's properties in the :guilabel:`Publish` tab:
110+
- :guilabel:`Public`: Everyone can access the page.
111+
- :guilabel:`Signed In`: Only signed in users 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.
94116

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.
117+
- :guilabel:`Is a template`: Enable to save this page as a template and add it to the
118+
:guilabel:`custom` category.
108119

109120
.. tip::
110-
*Some* of these properties can also be modified from :menuselection:`Website --> Site --> Pages`.
121+
*Some* of these properties can also be modified in batch from
122+
:menuselection:`Website --> Site --> Pages`.
123+
124+
.. _website/pages/duplicate-page:
111125

112126
Duplicating pages
113127
~~~~~~~~~~~~~~~~~
114128

115-
To duplicate a page, access the page, then go to :menuselection:`Site --> Properties` and click
129+
To duplicate a page, access the page, then go to :menuselection:`Site --> Properties`, and click
116130
:guilabel:`Duplicate Page`. Enter a :guilabel:`Page Name`, then click :guilabel:`OK`. By default,
117131
the new page is added after the duplicated page in the menu, but you can remove it from the menu or
118132
change its position using the :doc:`menu editor <pages/menus>`.
119133

120-
.. _website/delete-page:
134+
.. _website/pages/delete-page:
121135

122136
Deleting pages
123137
~~~~~~~~~~~~~~
124138

125139
To delete a page, proceed as follows:
126140

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
141+
#. Access the page, then go to :menuselection:`Site --> Properties` and click :guilabel:`Delete Page`.
142+
#. A pop-up window shows all links referring to the page you want to delete,
143+
organized by category. To ensure website visitors don't land on an error page, you must update
131144
all the links on your website referring to the page. To do so, expand a category, then click on a
132145
link to open it in a new window. Alternatively, you can set up a :ref:`redirection
133-
<website/URL-redirection>` for the deleted page.
134-
#. 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`.
146+
<website/pages/URL-redirection>` for the deleted page.
147+
#. Once you have updated the links (or set up a :ref:`redirection <website/pages/URL-redirection>`),
148+
tick the :guilabel:`I am sure about this` check box, then click :guilabel:`OK`.
136149

137-
.. _website/URL-redirection:
150+
.. _website/pages/URL-redirection:
138151

139152
URL redirect mapping
140153
--------------------
141154

142155
URL redirect mapping consists in sending visitors and search engines to a URL different from
143156
the one they initially requested. This technique is used, for example, to prevent broken links when
144-
you :ref:`delete a page <website/delete-page>`, :ref:`modify its URL <website/page_properties>`, or
145-
migrate your site from another platform to an Odoo :doc:`domain <configuration/domain_names>`. It
146-
can also be used to improve :doc:`pages/seo`.
157+
you :ref:`delete a page <website/pages/delete-page>`,
158+
:ref:`modify its URL <website/pages/page_properties>`, or migrate your site from another platform to
159+
an Odoo :doc:`domain <configuration/domain_names>`. It can also be used to improve :doc:`pages/seo`.
147160

148161
To access existing URL redirections and create new ones, :doc:`activate the developer mode
149162
</applications/general/developer_mode>` and go to :menuselection:`Website --> Configuration -->
150163
Redirects`.
151164

152165
.. note::
153166
- A redirect record is added automatically every time you :ref:`modify a page's URL
154-
<website/page_properties>` and enable :guilabel:`Redirect Old URL`.
155-
- You can set up redirections for :ref:`static and dynamic pages <website/page_type>`.
167+
<website/pages/page_properties>` and enable :guilabel:`Redirect Old URL`.
168+
- You can set up redirections for :ref:`static and dynamic pages <website/pages/page_type>`.
156169

157170
To create a new redirection, click the :guilabel:`New` button, then fill in the fields:
158171

@@ -162,20 +175,20 @@ To create a new redirection, click the :guilabel:`New` button, then fill in the
162175
- :guilabel:`404 Not found`: visitors are redirected to a 404 error page when they try to access
163176
an unpublished or deleted page.
164177
- :guilabel:`301 Moved Permanently`: for permanent redirections of unpublished or deleted
165-
:ref:`static pages <website/page_type>`. The new URL is shown in search engine results, and the
166-
redirect is cached by browsers.
178+
:ref:`static pages <website/pages/page_type>`. The new URL is shown in search engine results,
179+
and the redirect is cached by browsers.
167180
- :guilabel:`302 Moved Temporarily`: for short-term redirections, for example, if you are
168181
redesigning or updating a page. The new URL is neither cached by browsers nor shown in search
169182
engine results.
170183
- :guilabel:`308 Redirect/Rewrite`: for permanent redirections of existing :ref:`dynamic pages
171-
<website/page_type>`. The URL is renamed; the new name is shown in search engine results and is
172-
cached by browsers. Use this redirect type to rename a dynamic page, for example, if you wish
173-
to rename `/shop` into `/market`.
184+
<website/pages/page_type>`. The URL is renamed; the new name is shown in search engine results
185+
and is cached by browsers. Use this redirect type to rename a dynamic page, for example, if you
186+
wish to rename `/shop` into `/market`.
174187

175188
- :guilabel:`URL from`: Enter the URL to be redirected (e.g., `/about-the-company`) or search for
176-
the desired :ref:`dynamic page <website/page_type>` and select it from the list.
177-
- :guilabel:`URL to`: For 301, 302, and 308 redirects, enter the URL to be redirected to. If you want
178-
to redirect to an external URL, include the protocol (e.g., `https://`).
189+
the desired :ref:`dynamic page <website/pages/page_type>` and select it from the list.
190+
- :guilabel:`URL to`: For 301, 302, and 308 redirects, enter the URL to be redirected to. If you
191+
want to redirect to an external URL, include the protocol (e.g., `https://`).
179192
- :guilabel:`Website`: Select a specific website.
180193
- :guilabel:`Sequence`: To define the order in which redirections are performed, e.g., in the case
181194
of redirect chains (i.e., a series of redirects where one URL is redirected to another one, which
@@ -185,7 +198,7 @@ Toggle the :guilabel:`Activate` switch to deactivate the redirection.
185198

186199
.. important::
187200
404, 301, and 302 redirections are meant to migrate traffic from
188-
:ref:`unpublished <website/un-publish-page>` or :ref:`deleted <website/delete-page>` pages
201+
:ref:`unpublished <website/pages/un-publish-page>` or :ref:`deleted <website/pages/delete-page>` pages
189202
to *new* pages, while the 308 redirect is used for *permanent* redirections of *existing* pages.
190203

191204
.. seealso::
Loading
Binary file not shown.
Loading

0 commit comments

Comments
 (0)