Url part
: shell
: core-parts
: url-part-handler
: /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.
Kind: static method of UrlPart
| 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. |