Edit this topic

Content manager

: shell

: content-manager

: content

: /modules/core/content/services/content-manager.js

: https://github.com/DecentCMS/DecentCMS/blob/master/modules/core/content/services/content-manager.js

ContentManager()

The ContentManager is responsible for facilitating the usage of content items, content parts, and content types.

contentManager.getType(item) ⇒ object

Finds the type definition of an item if it exists on the tenant configuration.

Returns: object - The content type, or null if it can't be found.

Param Type Description
item object The content item.

contentManager.getParts(item, partTypeName) ⇒ Array

Gets a list of part names that are of the part type the gets passed in.

Returns: Array - An array of part names.

Param Type Description
item object The content item.
partTypeName string The name of the part type to look for.