> Documentation index: https://www.gooddata.ai/docs/gooddata-ui/llms.txt lists every page of these docs as Markdown.

# newPublisherDocumentPageFromTemplateV1()

- Package: [@gooddata/sdk-model](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-model/index.md)
- Kind: function
- Stability: alpha
- Source: https://github.com/gooddata/gooddata-ui-sdk/blob/rel/11.64/libs/sdk-model/src/publisher/v1/factory.ts

> **Alpha API.** Initial API, highly likely to change outside SemVer. Don't build on it in production. See [API maturity](https://www.gooddata.ai/docs/gooddata-ui/latest/integrations/platform/api-maturity/index.md).
> 

Clones a page template into a page instance embeddable in template/document content.

**Signature:**

```typescript
export declare function newPublisherDocumentPageFromTemplateV1(page: IPublisherPageTemplateV1 | IPublisherPageTemplateDefinitionV1, localIdentifier?: string): IPublisherDocumentPageV1;
```

## Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| page | [IPublisherPageTemplateV1](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-model/sdk-model.ipublisherpagetemplatev1/index.md) \| [IPublisherPageTemplateDefinitionV1](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-model/sdk-model.ipublisherpagetemplatedefinitionv1/index.md) |  |
| localIdentifier | string | _(Optional)_ |

**Returns:**

[IPublisherDocumentPageV1](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-model/sdk-model.ipublisherdocumentpagev1/index.md)

## 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.
