4
4
Building blocks
5
5
===============
6
6
7
- Building blocks let you design your website quickly by dragging and dropping them onto your web
8
- pages. Four types of building blocks are available depending on their use:
9
- :doc: `Structure <building_blocks/structure >`, :doc: `Features <building_blocks/features >`,
10
- :doc: `Dynamic Content <building_blocks/dynamic_content >`, and
11
- :doc: `Inner Content <building_blocks/inner_content >`.
7
+ You can design your website quickly and easily by dragging and dropping Building blocks. Depending
8
+ on their use, two types of building blocks are available: :guilabel: `Categories `
9
+ and :guilabel: `Inner Content. ` First, you need to add a category, and within this category, you
10
+ can add :ref: `inner content <building_blocks/inner_content >`.
11
+
12
+ .. image :: building_blocks/2-types-of-blocks.png
13
+ :alt: Two types of blocks
12
14
13
15
.. seealso ::
14
- `Odoo Tutorial: Design your first webpage <https://www.odoo.com/slides/slide/design-your-website-images-and-motion-6931?fullscreen=1 >`_
16
+ `Odoo Tutorial: Design your website: text and colours <https://www.odoo.com/slides/slide/design-your-website-text-and-colors-6930?fullscreen=1 >`_
17
+
18
+ Add a building block
19
+ ====================
20
+
21
+ To add a block, click :guilabel: `Edit `, then select the category or inner content you want to add.
22
+ When clicking on a category block, a pop-up appears, allowing you to select between multiple
23
+ templates for each category. Save when you’re finished.
24
+
25
+ You can add as many :guilabel: `category ` blocks as you want on a page but keep in mind that a short
26
+ and efficient page works best. Once your category block is placed, you can drag and drop
27
+ :guilabel: `inner content ` within it.
15
28
16
- .. _websites/website/web_design/building_blocks :
17
29
18
- Adding a building block
19
- =======================
30
+ .. image :: building_blocks/insert-a- block.png
31
+ :alt: Pop-up block selection
20
32
21
- To add a building block to your website page, click :guilabel: `Edit `, select the desired building
22
- block, and drag and drop it to your page. You can add as many blocks as needed.
33
+ .. note ::
34
+ Access to certain blocks requires the installation of their respective application.
35
+
36
+ Edit a building block
37
+ =====================
23
38
24
39
To edit the content of a building block, click on it and go to the :guilabel: `Customize ` tab, where
25
40
available features depend on the block you selected.
26
41
42
+ Pull the turquoise borders on your block to reduce or increase the space at the top or bottom of it.
43
+ Change the block order by clicking :icon: `fa-chevron-up ` or :icon: `fa-chevron-down ` and move the
44
+ block on your page by clicking the :icon: `fa-arrows `. Simply delete it by clicking :icon: `fa-trash `.
45
+
46
+ .. image :: building_blocks/padding-building-block.png
47
+ :alt: Extend margins on building block
48
+
49
+ .. tip ::
50
+ Change quickly the block category by clicking the arrows :icon: `fa-exchange `.
51
+
52
+
27
53
Color preset and background
28
54
===========================
29
55
@@ -35,32 +61,51 @@ When you modify a color preset, all elements using it are automatically updated
35
61
configuration.
36
62
37
63
.. seealso ::
38
- :doc: `Website themes <themes >`
64
+ :doc: `General theme <themes >`
65
+
39
66
40
67
Layout: grid and columns
41
68
========================
42
69
43
- You can choose between two layout styles for most building blocks: :ref: `grid
44
- <building_blocks/grid>` or :ref: `columns (cols) <building_blocks/cols >`. To change the default
45
- layout, go to the :guilabel: `Customize ` tab. Under the :guilabel: `Banner ` section, select
46
- :guilabel: `Grid ` or :guilabel: `Cols ` as the :guilabel: `Layout `.
70
+ You can choose between two layout styles for most building blocks: :ref: `grid <building_blocks/grid >`
71
+ or :ref: `columns (cols) <building_blocks/cols >`. To change the default layout, go to the
72
+ :guilabel: `Customize ` tab. Under the :guilabel: `Banner ` section, select :guilabel: `Grid ` or
73
+ :guilabel: `Cols ` as the :guilabel: `Layout ` row.
74
+
75
+ .. image :: building_blocks/customize-grid-and-cols.png
76
+ :alt: Grid & Cols
77
+
78
+ You can modify the background color and/or add an image, video as well as a shape to add some style
79
+ to your block. Once you’ve selected a shape, new rows appear allowing you to:
80
+
81
+ - select the shape you like,
82
+ - flip its sense (horizontally or vertically),
83
+ - add a colour inside and/or on the shape contour,
84
+ - remove a shape, a video or an image, by simply clicking on its icon.
85
+
86
+ .. tip ::
87
+ Position an element (image, text, etc.) behind or before another by using the above/below icons.
88
+
89
+ .. image :: building_blocks/change-block-position.png
90
+ :alt: Change block position
91
+
92
+ To make it bigger or smaller, click the dots around the block and adapt it to your liking.
93
+ Click save when you’re done.
94
+
95
+ .. image :: building_blocks/adapt-block-size.png
96
+ :alt: Adapt block size
97
+
98
+ .. seealso ::
99
+ :doc: `Visibility <visibility >`
47
100
48
101
.. _building_blocks/grid :
49
102
50
103
Grid
51
104
----
52
105
53
106
The :guilabel: `Grid ` layout allows you to reposition and resize elements, such as images or text, by
54
- dragging and dropping them.
55
-
56
- .. image :: building_blocks/grid-layout.png
57
- :alt: When the grid layout is selected, choose an image and drag and drop it where needed.
58
-
59
- .. tip ::
60
- Position images behind the text by using the above/below icons.
61
-
62
- .. image :: building_blocks/superimpose-images-to-text.png
63
- :alt: Positioning an image behind text
107
+ dragging and dropping them. Once you select :guilabel: `Grid `, a new row appears:
108
+ :guilabel: `Add Elements `, which allows you to add an Image, some Text, or a Button.
64
109
65
110
.. _building_blocks/cols :
66
111
@@ -69,107 +114,167 @@ Cols
69
114
70
115
Choosing the :guilabel: `Cols ` layout allows you to determine the number of elements per line within
71
116
the block. To do so, select the block to modify, click the :guilabel: `Cols ` :guilabel: `Layout `, and
72
- adjust the number.
117
+ adjust the number. You can edit the space around the column block by clicking on :guilabel: ` Padding `.
73
118
74
119
By default, **on mobile devices **, one element is visible per line to ensure that content remains
75
120
easily readable and accessible on smaller screens. To adjust the value, click the :icon: `fa-mobile `
76
- (:guilabel: `mobile icon `) at the top of the website editor and adapt the number of columns.
121
+ (:guilabel: `mobile icon `) at the top of the website editor and adapt the number of columns. Also,
122
+ if you selected a shape, this one will be hidden by default on mobiles too.
77
123
78
- .. image :: building_blocks/cols.png
124
+ .. image :: building_blocks/mobile- cols.png
79
125
:alt: Adjust the number of images per line on mobile view.
80
126
81
- Duplicating a building block
82
- ============================
127
+ Duplicate a building block
128
+ ==========================
83
129
84
- You can duplicate a building block by clicking on the duplicate icon. Once duplicated, the new block
85
- appears on your website beneath the original one.
130
+ You can duplicate a building block by clicking on the :icon: ` fa-clone ` duplicate icon. Once
131
+ duplicated, the new block appears on your website beneath the original one.
86
132
87
- .. image :: building_blocks/duplicate-container .png
133
+ .. image :: building_blocks/duplicate-block .png
88
134
:alt: Duplicating a building block
89
135
90
- Reordering a building block
91
- ===========================
136
+ Save a custom building block
137
+ ============================
92
138
93
- To reorder a building block, select it and click the up arrow to move it before the previous block
94
- or click the down arrow to move it after.
139
+ You can save a customized building block and reuse it elsewhere. To do so, select it, navigate to
140
+ the :guilabel: `Customize ` tab, and click the :icon: `fa-floppy-o ` (:guilabel: `floppy disk `) icon to
141
+ save it.
95
142
96
- You can also use the drag-and-drop icon to move a block manually.
143
+ .. image :: building_blocks/custom-block.png
144
+ :alt: New custom block
97
145
98
- .. image :: building_blocks/reordering-blocks .png
99
- :alt: Reordering building blocks
146
+ .. image :: building_blocks/save-custom-block .png
147
+ :alt: Saving a custom building block
100
148
101
- Saving a custom building block
102
- ==============================
149
+ Click the :guilabel: `Save and reload ` button on the pop-up to confirm saving your custom block.
103
150
104
- You can save a customized building block and reuse it elsewhere. To do so, select it, navigate to
105
- the :guilabel: `Customize ` tab, and click the :icon: `fa-floppy-o ` (:guilabel: `floppy disk `) icon to
106
- save it.
151
+ .. image :: building_blocks/pop-up-save-custom-block.png
152
+ :alt: Click to save your custom block
153
+
154
+ A new Custom category is now available, with your custom block on it. You can rename it
155
+ :icon: `fa-pencil ` or delete it :icon: `fa-trash `.
107
156
108
- .. image :: building_blocks/saving- custom-block.png
109
- :alt: Saving a building block
157
+ .. image :: building_blocks/pop-up- custom-block-created .png
158
+ :alt: Custom block created
110
159
111
160
Saved building blocks are available in the :guilabel: `Custom ` section of the :guilabel: `Blocks ` tab.
112
- Click the :icon: `fa-pencil ` (:guilabel: `pen `) icon to edit their name.
113
161
114
- .. image :: building_blocks/custom-blocks.png
115
- :alt: Custom section with saved building blocks
162
+ .. image :: building_blocks/custom-category-block.png
163
+ :alt: Custom category with saved building blocks
164
+
165
+ .. seealso ::
166
+ :doc: `Visibility <visibility >`
167
+
168
+ .. _building_blocks/inner_content :
169
+
170
+ Add Inner content
171
+ =================
172
+
173
+ The :guilabel: `Inner content ` blocks allow you to add elements such as videos, images, social
174
+ media buttons, and so on, into pre-existing category blocks.
175
+
176
+ .. example ::
177
+ Add all your social media accounts in one place with the Inner content Social Media block.
178
+ Simply :icon: `fa-toggle-on ` or :icon: `fa-toggle-off ` the desired platform and copy/paste your
179
+ account URL.
180
+
181
+ .. image :: building_blocks/social-media-inner-content.png
182
+ :alt: Social Media inner content block
183
+
184
+ Add Dynamic content
185
+ ===================
116
186
117
- .. _building_blocks/visibility :
187
+ The :guilabel: `Dynamic Content `, such as :ref: `Form <website/dynamic_content/form >`,
188
+ :ref: `Products <building_blocks/products >`, :ref: `Embed Code <building_blocks/embed_code >`,
189
+ or :doc: `Blog Posts <../../blog >`, help you create interactive and visually appealing layouts for
190
+ your web :doc: `pages <../pages >`.
118
191
119
- Visibility
120
- ==========
192
+ .. _website/building_blocks/form :
121
193
122
- Visibility on desktop/mobile
123
- ----------------------------
194
+ Form
195
+ ----
196
+
197
+ The :guilabel: `Form ` block is used to collect information from website visitors and create records
198
+ in your database.
199
+
200
+ .. image :: building_blocks/form-block.png
201
+ :alt: Example of a form block
202
+
203
+ Action
204
+ ------
205
+
206
+ By default, submitting the form **sends you an email ** containing what the visitor entered.
207
+ Depending on the apps installed on your database, new actions that can automatically create records
208
+ become available:
209
+
210
+ - :guilabel: `Apply for a Job ` (Recruitment)
211
+ - :guilabel: `Create a Customer ` (eCommerce)
212
+ - :guilabel: `Create a Ticket ` (Helpdesk)
213
+ - :guilabel: `Create an Opportunity ` (CRM)
214
+ - :guilabel: `Subscribe to Newsletter ` (Email Marketing)
215
+ - :guilabel: `Create a Task ` (Project)
216
+
217
+ Select another action with the :guilabel: `Action ` field found under the :guilabel: `Customize ` tab's
218
+ :guilabel: `Form ` section.
124
219
125
- You can hide specific elements depending on the visitor's device. To do so, select the element to
126
- hide, and in the :guilabel: `Customize ` tab, scroll down to :guilabel: `Visibility `, and click the
127
- :guilabel: `Show/Hide on Mobile ` or the :guilabel: `Show/Hide on Desktop ` icon.
220
+ .. image :: building_blocks/form-block-settings.png
221
+ :alt: Editing a form to change its action
128
222
129
- .. image :: building_blocks/show-hide-on-mobile.png
130
- :alt: Click the "show/hide on mobile" icons to show or hide some elements on mobile.
223
+ By default, actions redirect visitors to a *thank you * page after submitting the form. Use the
224
+ :guilabel: `URL ` field to change where they are redirected. It is also possible to let visitors stay
225
+ on the form's page by selecting :guilabel: `Nothing ` or :guilabel: `Show Message ` under the
226
+ :guilabel: `On Success ` field.
227
+
228
+ Fields
229
+ ------
230
+
231
+ To add a new field to the form, click the :guilabel: `+ Field ` button found next to the Customize
232
+ tab's :guilabel: `Form ` or :guilabel: `Field ` section. By default, new fields are *text * fields. To
233
+ change the type, use the :guilabel: `Type ` field and select an option under the :guilabel: `Custom
234
+ Field ` heading.
235
+
236
+ .. spoiler :: Click here to preview all field types
237
+
238
+ .. image :: building_blocks/form-field-types.png
239
+ :alt: All types of form fields
240
+
241
+ Some fields are visually similar, but the data entered must follow a specific format.
242
+
243
+ It is also possible to select an :guilabel: `Existing Field ` from a database and use the data it
244
+ contains. The fields available depend on the selected action.
131
245
132
246
.. tip ::
133
- Click the :icon: `fa-mobile ` (:guilabel: `mobile `) icon at the top of the configurator to preview
134
- how your website would look on a mobile device.
247
+ Property fields added to the database can also be used.
135
248
136
- .. image :: building_blocks/phone-icon.png
137
- :alt: Mobile phone preview icon
249
+ .. _website/building_blocks/products :
138
250
139
- Conditional visibility
140
- ----------------------
251
+ Products
252
+ --------
141
253
142
- You can also hide or show building blocks using other conditions. To do so, select an element, go to
143
- :guilabel: `Visibility `, click :guilabel: `No condition `, and select :guilabel: `Conditionally `
144
- instead. Then, configure the condition(s) to apply by selecting :guilabel: `Visible for ` or
145
- :guilabel: `Hidden for ` and which :guilabel: `Records ` will be impacted.
254
+ The :guilabel: `Products ` block is available after installing the eCommerce app. It is used to
255
+ display a selection of products sold on your website.
146
256
147
- .. seealso ::
148
- :doc: ` Link Tracker < ../reporting/link_tracker >`
257
+ .. image :: building_blocks/products-block.png
258
+ :alt: Example of a products block
149
259
150
- Invisible elements
151
- ------------------
260
+ By default, the block displays the :guilabel: `Newest Products `. To change which products are shown,
261
+ go to the :guilabel: `Customize ` tab's :guilabel: `Products ` section and select as :guilabel: `Filter `
262
+ the :guilabel: `Recently Sold Products ` or :guilabel: `Recently Viewed Products ` option.
152
263
153
- Depending on the visibility settings, some elements can become hidden from your current view. To
154
- make a building block visible again, go to the :guilabel: `Invisible Elements ` section at the bottom
155
- of the configurator and select a building block.
264
+ In addition, it is possible to display products from a single category only by selecting one with
265
+ the :guilabel: `Category ` field.
156
266
157
- Mobile view customization
158
- =========================
267
+ .. _website/building_blocks/embed_code :
159
268
160
- You can customize building block elements for the mobile view without impacting the desktop view.
161
- To do so, open the website editor, click the :icon: `fa-mobile ` (:guilabel: `mobile `) icon at the top,
162
- and select the building block element. Then, you can:
269
+ Embed code
270
+ ----------
163
271
164
- - reorder the elements by clicking the :icon: `fa-angle-left ` :icon: `fa-angle-right `
165
- (:guilabel: `left/right arrow `) icons;
166
- - edit the :ref: `Cols <building_blocks/cols >` and :ref: `Visibility <building_blocks/visibility >`
167
- features in the :guilabel: `Customize ` tab of the website editor.
272
+ Embedding code allows you to integrate content from third-party services into a page, such as videos
273
+ from YouTube, maps from Google Maps, social media posts from Instagram, etc.
168
274
169
- .. toctree ::
170
- :titlesonly:
275
+ .. image :: building_blocks/embed-code.png
276
+ :alt: Add the link to the embedded code you want to point to
171
277
172
- building_blocks/structure
173
- building_blocks/features
174
- building_blocks/dynamic_content
175
- building_blocks/inner_content
278
+ After adding the block to a page, click the :guilabel: `Edit ` button found under the
279
+ :guilabel: `Customize ` tab's :guilabel: `Embed Code ` section and enter the code, replacing the code
280
+ used to show the block's instructions.
0 commit comments