Sections enable you to divide content into groups which can later be used, for example, as basis for permissions.
You can manage Sections by using the PHP API by using
Section REST API
To learn how to manage Sections using the REST API, see REST API reference.
To create a new Section, you need to make use of the
and pass it to the
1 2 3 4
Getting Section information¶
You can use
SectionService to retrieve Section information such as whether it is in use:
1 2 3 4
Listing content in a Section¶
To list Content items assigned to a Section you need to make a query
for content belonging to this section, by applying the
You can also use the query to get the total number of assigned Content items:
1 2 3 4 5 6 7 8 9
Assigning Section to content¶
To assign content to a Section, use the
You need to provide it with the
ContentInfo object of the Content item,
1 2 3
Note that assigning a Section to content does not automatically assign it to the Content item's children.