Hi I cant change doctype on an existing page, but i can create a new in the same level with the the other doctype.
I want to change a contentpage to a listpage, i have set permission and if I alllow doctype contentPage templates on ListPage i get error.
Many thanks
/Christina
Hi Alex
I got this error
Cannot bind source content type Umbraco.Web.PublishedContentModels.ContentPage to model content type Umbraco.Web.PublishedContentModels.ListPages.
But if i Move the contentpages everything works
/Christina
Change doctype on a page
Hi I cant change doctype on an existing page, but i can create a new in the same level with the the other doctype. I want to change a contentpage to a listpage, i have set permission and if I alllow doctype contentPage templates on ListPage i get error. Many thanks /Christina
Hi Christina
What error did you get?
Thanks,
Alex
Hi Alex I got this error Cannot bind source content type Umbraco.Web.PublishedContentModels.ContentPage to model content type Umbraco.Web.PublishedContentModels.ListPages. But if i Move the contentpages everything works /Christina
It's because your template is waiting for ContentPage page model, and you pass ListPages model.
You have to change templates code to be universal.
Can you show razor code?
Thanks a lot here is the code
}
Glad that topic is solved, have a nice day!
is working on a reply...