equal
deleted
inserted
replaced
2 |
2 |
3 |
3 |
4 How to create a Paragraph type? |
4 How to create a Paragraph type? |
5 =============================== |
5 =============================== |
6 |
6 |
7 Paragraphs are components or blocs that contain elements/fields and provide one or many renderer methods to compose |
7 Paragraphs or Blocks are components that contain elements/fields and provide one or many renderer methods to compose |
8 the front office website |
8 the front office website |
9 |
9 |
10 In this example we will create a contact paragraph to display at the user, who to contact |
10 |
11 |
11 Create a Paragraph |
12 1) Define a paragraph Interface |
12 """""""""""""""""" |
13 ------------------------------- |
13 |
|
14 In this example we will create a contact paragraph to display at the user, who to contact. |
|
15 |
|
16 1) Interface |
|
17 ------------ |
14 |
18 |
15 At first we create a new paragraph interface. |
19 At first we create a new paragraph interface. |
16 |
20 |
17 .. code-block:: python |
21 .. code-block:: python |
18 |
22 |
91 .. seealso:: |
95 .. seealso:: |
92 |
96 |
93 :ref:`rendererhowto` |
97 :ref:`rendererhowto` |
94 |
98 |
95 |
99 |
96 How integrate a paragraph in the ZMI? |
100 Paragraph in the ZMI |
97 ===================================== |
101 """""""""""""""""""" |
|
102 |
98 |
103 |
99 To display and manage the new paragraph in the ZMI, you should create this associated forms |
104 To display and manage the new paragraph in the ZMI, you should create this associated forms |
100 |
105 |
101 1) Paragraph factory |
106 1) Paragraph factory |
102 -------------------- |
107 -------------------- |