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: 15/umbraco-cms/reference/content-type-filters.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
---
2
-
description: Describes how to use content type filters to restrict the allowed content options available to editors.
2
+
description: Describes how to use Content Type Filters to restrict the allowed content options available to editors.
3
3
---
4
4
5
5
# Filtering Allowed Content Types
@@ -20,9 +20,9 @@ To create a content type filter you use a class that implements the `IContentTyp
20
20
21
21
There are two methods you can implement. One is for filtering the content types allowed at the content root. The other is for the content types allowed below a given parent node.
22
22
23
-
If you don't want to filter for one or other method, you can just return the provided collection unmodified.
23
+
If you don't want to filter for one or other method, you can return the provided collection unmodified.
24
24
25
-
The following example shows a typical use case. Often websites will have a "Home Page" document type which is created at the root. Normally, only one of these is required. You can enforce that using the following content type filter.
25
+
The following example shows a typical use case. Often websites will have a "Home Page" Document Type which is created at the root. Normally, only one of these is required. You can enforce that using the following Content Type Filter.
26
26
27
27
Here we are querying the existing content available at the root. Normally we can create a "Home Page" here, but if one already exists, we remove the option:
28
28
@@ -57,7 +57,7 @@ internal class OneHomePageOnlyContentTypeFilter : IContentTypeFilter
57
57
}
58
58
```
59
59
60
-
Content type filters are registered as a collection, so it's possible to have more than one either in the solution or an installed package.
60
+
Content Type Filters are registered as a collection, so it's possible to have more than one either in the solution or an installed package.
0 commit comments