Skip to content

Creating a doctype with template does not yield a strongly typed templated #20443

@kjac

Description

@kjac

Which Umbraco version are you using?

16 & 17 (might be in 15 too, haven't tested)

Bug summary

When creating a new document type with a corresponding template in V13, the generated template would be strongly typed to the (assumed) Models Builder model; that is, it would implement UmbracoViewPage<T> where T is the generated model.

In V16, the same action yields a templated that implements UmbracoViewPage.

Specifics

No response

Steps to reproduce

Create a new doctype with a template and call it "MyDocType".

Open the created template. It will look something like this:

Image

Expected result / actual result

The corresponding template in V13 looks something like this:

Image

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions