Creating a Template via a new DocType (#18247)

uses the doc-type name, so that the server
can case it appropriately for the template filename.
re: https://github.com/umbraco/Umbraco-CMS/issues/17458#issuecomment-2639213085
This commit is contained in:
Lee Kelleher
2025-02-06 14:51:00 +00:00
committed by GitHub
parent 82fcede59a
commit deeeaf4107

View File

@@ -169,7 +169,7 @@ export class UmbDocumentTypeWorkspaceContext
async #createAndAssignTemplate() {
const { data: templateScaffold } = await this.#templateRepository.createScaffold({
name: this.getName(),
alias: this.getAlias(),
alias: this.getName(), // NOTE: Uses "name" over alias, as the server handle the template filename. [LK]
});
if (!templateScaffold) throw new Error('Could not create template scaffold');