newPublisherDocumentPageFromTemplateV1()
Alpha API. Initial API, highly likely to change outside SemVer. Don’t build on it in production. See API maturity.
Clones a page template into a page instance embeddable in template/document content.
export declare function newPublisherDocumentPageFromTemplateV1(page: IPublisherPageTemplateV1 | IPublisherPageTemplateDefinitionV1, localIdentifier?: string): IPublisherDocumentPageV1;
Parameters
Parameter | Type | Description |
|---|---|---|
page | IPublisherPageTemplateV1 | IPublisherPageTemplateDefinitionV1 | |
localIdentifier | string | (Optional) |
Returns
Remarks
The body is deep-copied and detached from the source page — no reference is kept. Slot localIdentifiers (and the layout slotIds pointing at them) are prefixed with the page-instance localIdentifier, so one page used repeatedly in the same content stays unique.