Edit this topic

Title part

: shell

: core-parts

: shape-handler

: /modules/core/parts/services/title-part.js

: https://github.com/DecentCMS/DecentCMS/blob/master/modules/core/parts/services/title-part.js


The title part handler looks for a title property on the content item. It renders a title shape, and also sets the title on the renderer if the display type is 'main' (which means this is the main content item on the page).

Kind: global variable

TitlePart.handle(context, done)

Adds a title shape to context.shape.temp.shapes, and sets the global title for the request if the display type is 'main'.

Kind: static method of TitlePart

Param Type Description
context object The context object.
context.shape object The shape to handle. Its temp.item is a reference to the content item.
context.scope object The scope.
done function The callback.