You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: plone.app.dexterity/model-driven-types.md
+18-17Lines changed: 18 additions & 17 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,26 +1,27 @@
1
1
---
2
2
myst:
3
3
html_meta:
4
-
"description": ""
5
-
"property=og:description": ""
6
-
"property=og:title": ""
7
-
"keywords": ""
4
+
"description": "Model-driven types"
5
+
"property=og:description": "Model-driven types"
6
+
"property=og:title": "Model-driven types"
7
+
"keywords": "Plone, model, content types"
8
8
---
9
9
10
10
# Model-driven types
11
11
12
12
In the previous section, we defined two types by using Zope schema.
13
13
In this section, we're going to define a type's fields using an XML model file.
14
14
15
-
The great advantage of using a model file is that we can prototype the content type in Dexterity's through-the-web field editor, then export the XML model file for incorporation into our package.
15
+
The advantage of using a model file is that we can prototype the content type in Dexterity's through-the-web field editor, then export the XML model file for incorporation into our package.
16
16
17
17
XML may be used to do pretty much anything you could do via Zope schema.
18
18
Many users not already schooled in Zope schema will find this by far the easiest and fastest way to create Dexterity content types.
19
19
20
+
20
21
## Setting the field model
21
22
22
23
Create an `example/conference/models` directory.
23
-
In it, add a `presenter.xml` file with the contents:
24
+
In it, add a `presenter.xml` file with the following content.
0 commit comments