Edit dynamic content types and their hierarchy
Once you created a content type, you can edit its properties, fields, and the hierarchy between content types.
If your module has more than one content type, you can have either a flat structure – all content types are on one level, or you can have hierarchy, some content types are parents of other content types. You choose the parent of a content type when you create it, but you can change this parent when you edit the content type.
To edit a content type, create a new content, or change the hierarchy of your content types, perform the following:
- Click Administration » Module builder.
- Click the module whose content type you want to edit.
The module’s detailed page appears.
- Under This module contains..., click the content type.
- To edit the content type:
- Edit the properties and the fields of the content type.
For more information, see Create a dynamic content type.
NOTE: If you want to change the identifier of the module, you must also update the grid, displaying the content items. For more information, see Change the identifier of a content type
- To change the hierarchy, you must select a new parent in Parent content type dropdown box.
- Click Finish.
- To delete the content type:
- In the lower-right corner, click Delete.
- Confirm the deletion.
The content type and all content items create with it are permanently deleted.
If you have changed the parent type of a content type, the system cannot map all the items of this type with respective parent items of the new parent type. You have to make this mapping manually. For this purpose, the system automatically creates an item in the parent content type, named Moved items. This item, by default becomes a parent item of all items of the content type that you have moved.
EXAMPLE: If you have two content types – Blogs and Blog posts, which are both at top level. You have created a couple of blogs and some blog posts. Later, you decide that you want to make Blog posts a child content type of Blogs, meaning each blog will have its own blog posts. You open Blog posts content type for editing and you select as parent Blogs. The system moves all created blog posts under the Blogs content type, but it does not know which blog post will belong to which blog. Therefore, the Moved items item is created and it becomes a parent of all blog posts. If you open the Moved items item, you can see all blog posts and you can edit each blog post and assign it to a particular blog, by changing its parent.