7
7
Odoo allows you to create pages for your website and customize their content and appearance to your
8
8
needs.
9
9
10
- .. _website/page_type :
10
+ .. _website/pages/ page_type :
11
11
12
- **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.
12
+ **Static ** pages, such as the homepage or any :ref: `custom-created <website/pages/page_creation >`,
13
+ contain fixed content that does not change dynamically. You can manually create these pages, define
14
+ their URLs, and adapt their :ref: `properties <website/pages/page_management >` as needed. **Dynamic **
15
+ pages, on the other hand, are generated dynamically. All pages generated automatically by Odoo, for
16
+ example, when you install an app or module (e.g., `/shop ` or `/blog `) or publish a new product or
17
+ :doc: `blog post <../blog >`, are dynamic pages and are therefore managed differently.
18
+
19
+ .. _website/pages/page_creation :
17
20
18
21
Page creation
19
22
=============
@@ -24,24 +27,41 @@ page, proceed as follows:
24
27
#. - Either open the **Website ** app, click :guilabel: `+ New ` in the top-right corner, then select
25
28
:guilabel: `Page `;
26
29
- Or go to :menuselection: `Website --> Site --> Pages ` and click :guilabel: `New `.
30
+ #. In the :guilabel: `New Page ` selection menu, click on a template. They are sorted by type:
31
+
32
+ - :guilabel: `Basic `: Multi-purpose page. A blank page is also available to start from scratch.
33
+ - :guilabel: `About `: Information about your brand.
34
+ - :guilabel: `Landing Pages `: Summary of company content and info.
35
+ - :guilabel: `Gallery `: Photos and media showcase.
36
+ - :guilabel: `Services `: Focus on what you're selling and contact.
37
+ - :guilabel: `Pricing Plans `: Highlight on subscription and prices.
38
+ - :guilabel: `Team `: The people behind your company.
39
+ - :guilabel: `Custom `: To select a custom template. To add a template to this category, open the
40
+ page you want to save as a template, then go to :menuselection: `Site --> Properties `, enter
41
+ the :guilabel: `Page Title `, :ref: `edit the page's properties
42
+ <website/pages/page_properties>`, enable :guilabel: `Is a template `, and click
43
+ :guilabel: `Save `.
44
+
27
45
#. Enter a :guilabel: `Page Title `; this title is used in the menu and the page's URL.
28
46
#. 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.
47
+ #. If needed, :doc: ` customize the page's content and appearance < web_design >` using the website
48
+ editor, then click :guilabel: `Save `.
49
+ #. :ref: `Publish <website/pages/ un-publish-page >` the page.
32
50
33
- .. note ::
51
+ .. tip ::
34
52
Disable :guilabel: `Add to menu ` if the page should not appear in the menu.
35
53
54
+ .. _website/pages/page_management :
55
+
36
56
Page management
37
57
===============
38
58
39
- .. _website/un-publish-page :
59
+ .. _website/pages/ un-publish-page :
40
60
41
61
Publishing/unpublishing pages
42
62
-----------------------------
43
63
44
- Pages need to be published to make them accessible to website visitors. To publish or unpublish a
64
+ Pages need to be published to make them visible to website visitors. To publish or unpublish a
45
65
page, access it and toggle the switch in the upper-right corner from :guilabel: `Unpublished `
46
66
to :guilabel: `Published `, or vice versa.
47
67
@@ -51,108 +71,103 @@ to :guilabel:`Published`, or vice versa.
51
71
.. note ::
52
72
It is also possible to:
53
73
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 `,
74
+ - Publish /unpublish a page from the :ref: `page properties <website/pages/ page_properties >`,
75
+ where you can define a publishing date and/or restrict the page's visibility if needed;
76
+ - Publish /unpublish several pages at once: go to :menuselection: `Website --> Site --> Pages `,
57
77
select the pages, then click :guilabel: `Action ` and select :guilabel: `Publish ` or
58
78
:guilabel: `Unpublish `.
59
79
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 `).
67
80
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 `.
81
+ Alternatively, you can define any :ref: `static page <website/pages/ page_type >` as your homepage by
82
+ going to :menuselection: `Website --> Site --> Properties `. Select the :guilabel: `Publish ` tab and
83
+ enable :guilabel: `Use as Homepage `.
71
84
72
- .. _website/page_properties :
85
+ .. _website/pages/ page_properties :
73
86
74
87
Page properties
75
88
---------------
76
89
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 `.
90
+ To modify a :ref: `static page's <website/pages/page_type >` properties, access the page you wish to
91
+ modify, then go to :menuselection: `Site --> Properties `, where you can change the following
92
+ properties:
79
93
80
- The :guilabel: `Name ` tab allows you to:
94
+ - :guilabel: `Page URL ` : Modify the page URL in the field. In this case, you can redirect the
95
+ old URL to the new one if needed. To do so, enable :guilabel: `Redirect old URL `, then select the
96
+ :guilabel: `Type ` of :ref: `redirection <website/pages/URL-redirection >`:
81
97
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 >`:
98
+ - :guilabel: `301 Moved permanently `: to redirect the page permanently.
99
+ - :guilabel: `302 Moved temporarily `: to redirect the page temporarily.
86
100
87
- - :guilabel: ` 301 Moved permanently `: to redirect the page permanently;
88
- - :guilabel: ` 302 Moved temporarily `: to redirect the page temporarily.
101
+ .. image :: pages/ page-properties.png
102
+ :alt: Redirect old URL
89
103
90
- .. image :: pages/page-redirection.png
91
- :alt: Redirect old URL
104
+ - :guilabel: `In Menu `: Disable if you don't want the page to appear in the menu.
105
+ - :guilabel: `Is Homepage `: Enable if you want the page to be the homepage of your website.
106
+ - :guilabel: `Published `: Enable to publish the page.
107
+ - :guilabel: `Publishing Date `: To publish the page at a specific date and time, click the field,
108
+ set the date and time, then press **Enter ** or click :guilabel: `Apply ` to validate your selection.
109
+ - :guilabel: `Indexed `: Disable if you don't want the page to appear in search engine results.
110
+ - :guilabel: `Visibility `: Select who can access the page:
92
111
93
- You can further adapt the page's properties in the :guilabel: `Publish ` tab:
112
+ - :guilabel: `Public `: Everyone can access the page.
113
+ - :guilabel: `Signed In `: Only signed-in users can access the page.
114
+ - :guilabel: `Restricted Group `: Select the :doc: `user access group(s)
115
+ </applications/general/users/access_rights>` in the :guilabel: `Authorized group ` field.
116
+ - :guilabel: `With Password `: Type the password required to access the page in the
117
+ :guilabel: `Password ` field.
94
118
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.
119
+ - :guilabel: `Is a template `: Toggle the switch to save the page as a template and add it to the
120
+ :guilabel: `Custom ` category.
108
121
109
122
.. tip ::
110
- *Some * of these properties can also be modified from :menuselection: `Website --> Site --> Pages `.
123
+ *Some * of these properties can also be modified in batch from
124
+ :menuselection: `Website --> Site --> Pages `.
125
+
126
+ .. _website/pages/duplicate-page :
111
127
112
128
Duplicating pages
113
129
~~~~~~~~~~~~~~~~~
114
130
115
- To duplicate a page, access the page, then go to :menuselection: `Site --> Properties ` and click
131
+ To duplicate a page, access the page, then go to :menuselection: `Site --> Properties `, and click
116
132
:guilabel: `Duplicate Page `. Enter a :guilabel: `Page Name `, then click :guilabel: `OK `. By default,
117
133
the new page is added after the duplicated page in the menu, but you can remove it from the menu or
118
134
change its position using the :doc: `menu editor <pages/header_footer >`.
119
135
120
- .. _website/delete-page :
136
+ .. _website/pages/ delete-page :
121
137
122
138
Deleting pages
123
139
~~~~~~~~~~~~~~
124
140
125
141
To delete a page, proceed as follows:
126
142
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
143
+ #. Access the page, then go to :menuselection: `Site --> Properties ` and click :guilabel: `Delete Page `.
144
+ #. A pop-up window shows all links referring to the page you want to delete,
145
+ organized by category. To ensure website visitors don't land on an error page, you must update
131
146
all the links on your website referring to the page. To do so, expand a category, then click on a
132
147
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 `.
148
+ <website/pages/ URL-redirection>` for the deleted page.
149
+ #. Once you have updated the links (or set up a :ref: `redirection <website/pages/ URL-redirection >`),
150
+ tick the :guilabel: `I am sure about this ` check box, then click :guilabel: `OK `.
136
151
137
- .. _website/URL-redirection :
152
+ .. _website/pages/ URL-redirection :
138
153
139
154
URL redirect mapping
140
155
--------------------
141
156
142
157
URL redirect mapping consists in sending visitors and search engines to a URL different from
143
158
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 `.
159
+ you :ref: `delete a page <website/pages/ delete-page >`,
160
+ :ref: ` modify its URL < website/pages/page_properties >`, or migrate your site from another platform to
161
+ an Odoo :doc: ` domain < configuration/domain_names >`. It can also be used to improve :doc: `pages/seo `.
147
162
148
163
To access existing URL redirections and create new ones, :doc: `activate the developer mode
149
164
</applications/general/developer_mode>` and go to :menuselection: `Website --> Configuration -->
150
165
Redirects `.
151
166
152
167
.. note ::
153
168
- 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 >`.
169
+ <website/pages/ page_properties>` and enable :guilabel: `Redirect Old URL `.
170
+ - You can set up redirections for :ref: `static and dynamic pages <website/pages/ page_type >`.
156
171
157
172
To create a new redirection, click the :guilabel: `New ` button, then fill in the fields:
158
173
@@ -162,20 +177,20 @@ To create a new redirection, click the :guilabel:`New` button, then fill in the
162
177
- :guilabel: `404 Not found `: visitors are redirected to a 404 error page when they try to access
163
178
an unpublished or deleted page.
164
179
- :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.
180
+ :ref: `static pages <website/pages/ page_type >`. The new URL is shown in search engine results,
181
+ and the redirect is cached by browsers.
167
182
- :guilabel: `302 Moved Temporarily `: for short-term redirections, for example, if you are
168
183
redesigning or updating a page. The new URL is neither cached by browsers nor shown in search
169
184
engine results.
170
185
- :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 `.
186
+ <website/pages/ page_type>`. The URL is renamed; the new name is shown in search engine results
187
+ and is cached by browsers. Use this redirect type to rename a dynamic page, for example, if you
188
+ wish to rename `/shop ` into `/market `.
174
189
175
190
- :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:// `).
191
+ the desired :ref: `dynamic page <website/pages/ page_type >` and select it from the list.
192
+ - :guilabel: `URL to `: For 301, 302, and 308 redirects, enter the URL to be redirected to. If you
193
+ want to redirect to an external URL, include the protocol (e.g., `https:// `).
179
194
- :guilabel: `Website `: Select a specific website.
180
195
- :guilabel: `Sequence `: To define the order in which redirections are performed, e.g., in the case
181
196
of redirect chains (i.e., a series of redirects where one URL is redirected to another one, which
@@ -185,7 +200,7 @@ Toggle the :guilabel:`Activate` switch to deactivate the redirection.
185
200
186
201
.. important ::
187
202
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
203
+ :ref: `unpublished <website/pages/ un-publish-page >` or :ref: `deleted <website/pages /delete-page >` pages
189
204
to *new * pages, while the 308 redirect is used for *permanent * redirections of *existing * pages.
190
205
191
206
.. seealso ::
0 commit comments