Edit this topic

Url part

: shell

: url-part-handler

: core-parts

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

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

UrlPart

The URL part handler creates url shapes.

UrlPart.handle(context, done)

Adds a url shape to context.shapes for the URL part on the context.

Param Type Description
context object The context object.
context.part object The text part to handle.
context.partName string The name of the part.
context.displayType string The display type.
context.item object A reference to the content item.
context.shapes Array The shapes array to which new shapes must be pushed.
context.scope object The scope.
done function The callback.