1
1
The first MetaModel
2
- -------------------
2
+ ===================
3
3
4
4
Install with composer
5
- =====================
5
+ ---------------------
6
6
7
7
You’ll need the MetaModels core and some attributes / filter to get MetaModels running. In you composer search
8
8
``metamodels/core `` an ``metamodels/bundle_all `` to install the core and all bundles and filters.
@@ -12,10 +12,10 @@ When installed, run the database update and your MetaModels installation is done
12
12
.. note :: If you know that you don’t need all attributes and/or filter you can install every single package by it’s own.
13
13
14
14
Your first MetaModel
15
- ====================
15
+ --------------------
16
16
17
17
Create MetaModels
18
- -----------------
18
+ .................
19
19
To get started with MetaModels we need at least one MetaModel, jai! We will build a small MetaModel, non translated,
20
20
MetaModel for real estate references.
21
21
@@ -29,7 +29,7 @@ In our example we need two MetaModels:
29
29
Create reference and category metamodels.
30
30
31
31
Create attributes
32
- -----------------
32
+ .................
33
33
34
34
An (empty) MetaModel is just a container for your data objects. But before you can store data in your MetaModel, you
35
35
need to define some types of data which you like to store.
@@ -147,7 +147,7 @@ Choose:
147
147
:Sorting: sorting
148
148
149
149
Create Rendersettings
150
- =====================
150
+ .....................
151
151
152
152
For now, we have two MetaModel with some attributes and a link between booth. But we didn’t want just to store some
153
153
data, we also like to display them.
@@ -192,7 +192,7 @@ The filter setting define the rules for the target, your detail page.
192
192
:hide labels: yes
193
193
194
194
Create a rendersetting (backend)
195
- --------------------------------
195
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
196
196
197
197
Go to the „render settings“ of „reference“.
198
198
@@ -203,7 +203,7 @@ Go to the „render settings“ of „reference“.
203
203
.. note :: When you (later) add attributes to your MetaModel you need to add them also in your render setting.*
204
204
205
205
Create a rendersetting (frontend list)
206
- ---------------------------------------
206
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
207
207
208
208
Go to the „render settings“ of „reference“.
209
209
@@ -212,7 +212,7 @@ Go to the „render settings“ of „reference“.
212
212
* After adding, activate „name“, „category“, „picture_highlight“
213
213
214
214
Create a rendersetting (frontend detail)
215
- ----------------------------------------
215
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
216
216
217
217
Go to the „render settings“ of „reference“.
218
218
@@ -221,7 +221,7 @@ Go to the „render settings“ of „reference“.
221
221
* After adding, activate „name“, „description“, „category“, „picture_highlight“, „picture_gallery“
222
222
223
223
Input Screens
224
- =============
224
+ .............
225
225
226
226
For now there are two MetaModels with some Attributes and Rendersetting. But how do we get data in our MetaModels?
227
227
With input screens!
@@ -245,15 +245,15 @@ So create a Input Screen with the following settings:
245
245
:Data manipulation permission: We want to allow editing, creating and deleting items - so choose all three.
246
246
247
247
Select configuration
248
- --------------------
248
+ ^^^^^^^^^^^^^^^^^^^^
249
249
250
250
Okay. Now we got the empty Input Screen container with a few settings. But to get things working, we need (remember
251
251
the render setting!) some attributes in it.
252
252
253
253
Switch to the „settings“ of your currently created Input Screen and choose „add all“.
254
254
255
255
Define Attribute settings
256
- -------------------------
256
+ ^^^^^^^^^^^^^^^^^^^^^^^^^
257
257
258
258
Our input screen is ready. But we need tweak the attributes a little bit. For example we always want a name, description
259
259
and Highlight Picture.
@@ -263,14 +263,14 @@ To get this done, we choose in these attribute settings the „mandatory“.
263
263
.. info :: Input Screens are very powerful. Take a coffee and explore the visibility conditions and attribute settings.
264
264
265
265
Grouping and sorting settings
266
- -----------------------------
266
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
267
267
268
268
In the grouping & sorting section you need to create at least one object to sort & maybe group your entries.
269
269
270
270
For example: "Enable manual sorting" without grouping.
271
271
272
272
View conditions
273
- ===============
273
+ ...............
274
274
275
275
View conditions are the easy part in MetaModels. But, you might guess that you also need here at least one to get things
276
276
work.
@@ -281,7 +281,7 @@ The view conditions define who could see and use which render setting and input
281
281
group“ blank.
282
282
283
283
Define a view condition
284
- -----------------------
284
+ ^^^^^^^^^^^^^^^^^^^^^^^
285
285
Define one view condition with following settings:
286
286
287
287
:member-group: -leave this empty-
@@ -292,11 +292,11 @@ Define one view condition with following settings:
292
292
.. info :: Wasn’t it a good Idea to prefix our input screens and render setting? ;-)
293
293
294
294
We are ready to enter Data
295
- --------------------------
295
+ ..........................
296
296
Some time ago, we started with just a MetaModels package and already arrived to create data. Easy, hm?
297
297
298
298
Continue to the new „Referenz“ entry in your „content“ navigation and add a first item.
299
299
300
300
Filter Setting
301
- ==============
301
+ --------------
302
302
(Todo)
0 commit comments