From 858e6314f76ec8dc4dcded33a277c7687c09a3dc Mon Sep 17 00:00:00 2001 From: Julia Gru <56249914+julczka@users.noreply.github.com> Date: Wed, 31 May 2023 15:29:06 +0200 Subject: [PATCH] add parent aliast to the content when creating the template --- .../workspace/template-workspace.context.ts | 12 ++++++++++-- .../workspace/template-workspace.element.ts | 11 ++--------- 2 files changed, 12 insertions(+), 11 deletions(-) diff --git a/src/Umbraco.Web.UI.Client/src/packages/templating/templates/workspace/template-workspace.context.ts b/src/Umbraco.Web.UI.Client/src/packages/templating/templates/workspace/template-workspace.context.ts index 9d98a98682..906b484808 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/templating/templates/workspace/template-workspace.context.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/templating/templates/workspace/template-workspace.context.ts @@ -122,11 +122,19 @@ export class UmbTemplateWorkspaceContext extends UmbWorkspaceContext this.#element, setup: (component: PageComponent, info: IRoutingInfo) => { - // const parentKey = info.match.params.parentKey; - this.#templateWorkspaceContext.createScaffold(); + const parentKey = info.match.params.parentKey; + this.#templateWorkspaceContext.createScaffold(parentKey); }, }, {