Skip to content

Commit 76f1dda

Browse files
Apply suggestions from code review
Co-authored-by: Steve Piercy <[email protected]>
1 parent 232db36 commit 76f1dda

File tree

1 file changed

+16
-12
lines changed

1 file changed

+16
-12
lines changed

docs/backend/content-types/index.md

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,10 @@ See the chapter {ref}`training:dexterity1-label` from the Mastering Plone 6 Trai
1717

1818
## What is a content type?
1919

20-
Each item in a Plone site is an instance of a particular content type. We have different content types to reflect the different kinds of information about which we need to collect and display information.
20+
Each item in a Plone site is an instance of a particular content type.
21+
We have different content types to reflect the different kinds of information about which we need to collect and display information.
2122

22-
Pages, news items, events, files (binary) and images are examples of content types.
23+
Pages, news items, events, files (binary), and images are examples of content types.
2324

2425
Lots of things in Plone can be configured to work differently based on the content type. For example, each content type has:
2526
- a {ref}`schema <backend-fields-label>` specifying the fields which can be edited for the content type
@@ -31,7 +32,7 @@ It is common in developing a web site that you'll need customized versions of co
3132

3233
## Factory Type Information
3334

34-
A content type is defined by creating a Factory Type Information (FTI) object.
35+
A content type is defined by creating a {term}`Factory Type Information` (FTI) object.
3536

3637
To create an FTI in a GenericSetup profile, add the content type to the list in `types.xml`. For example, this adds the standard Plone page (Document) content type:
3738

@@ -43,6 +44,7 @@ To create an FTI in a GenericSetup profile, add the content type to the list in
4344

4445
Then, add a file to the `types` directory with the same name.
4546
In this example, the file is `types/Document.xml` and contains this XML:
47+
4648
```xml
4749
<?xml version="1.0" encoding="utf-8"?>
4850
<object xmlns:i18n="http://xml.zope.org/namespaces/i18n"
@@ -179,17 +181,17 @@ model_source
179181
This is an alternative to `schema` and `model_file`.
180182
181183
behaviors
182-
List of {ref}`behaviors <backend-behaviors-label>` enabled for this content type.
184+
List of {doc}`behaviors <behaviors>` enabled for this content type.
183185
184186
global_allow
185187
Boolean.
186-
Set to True to allow adding the content type anywhere in the site where the user has permission.
187-
Set to False to only allow adding it inside other content types that include this one in `allowed_content_types`.
188+
Set to `True` to allow adding the content type anywhere in the site where the user has permission.
189+
Set to `False` to only allow adding it inside other content types that include this one in `allowed_content_types`.
188190
189191
filter_content_types
190192
Boolean. Controls which content types can be added inside this one.
191-
If True, allow only the types listed in `allowed_content_types`.
192-
If False, allow any content type that the user has permission to add.
193+
If `True`, allow only the types listed in `allowed_content_types`.
194+
If `False`, allow any content type that the user has permission to add.
193195
194196
allowed_content_types
195197
List of content types which can be added inside this one.
@@ -199,7 +201,7 @@ allow_discussion
199201
Boolean. Controls whether Plone's commenting system is enabled for this content type.
200202
201203
`action` elements
202-
Defines additional {ref}`actions <backend-portal-actions-label>` which are available for this content type.
204+
Defines additional {doc}`actions <portal-actions>` which are available for this content type.
203205
```
204206

205207
The following FTI properties are only used in the Classic UI:
@@ -208,10 +210,11 @@ The following FTI properties are only used in the Classic UI:
208210
:sorted: true
209211
icon_expr
210212
TALES expression returning the name of one of the registered icons.
211-
See {ref}`classic-ui-icons-label`
213+
See {doc}`icons`.
212214
213215
link_target
214-
TODO
216+
```{todo} add definition of `link_target`.
217+
```
215218
216219
add_view_expr
217220
TALES expression returning the URL for the form to add a new item of this content type.
@@ -220,7 +223,8 @@ default_view
220223
Name of the default view used to display this content type.
221224
222225
default_view_fallback
223-
TODO
226+
```{todo} add definition of `default_view_fallback `.
227+
```
224228
225229
immediate_view
226230
Name of the view alias to display after a new item is added.

0 commit comments

Comments
 (0)