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:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user