When I choose my newly created type it gives me this problem
"There are no allowed document types available for creating content here. You must enable these in Document Types within the Settings section, by editing the Allowed child node types under Permissions."
then I tried to make my Editor Is an Element type set to true..
But I got this Error
System.InvalidOperationException: Model Umbraco.Web.PublishedModels.ColoredPragraphEditor expects argument of type Umbraco.Core.Models.PublishedContent.IPublishedContent, but got Our.Umbraco.DocTypeGridEditor.Models.DetachedPublishedElement.
Can't use my new type !!
When I choose my newly created type it gives me this problem
"There are no allowed document types available for creating content here. You must enable these in Document Types within the Settings section, by editing the Allowed child node types under Permissions."
then I tried to make my Editor Is an Element type set to true..
But I got this Error System.InvalidOperationException: Model Umbraco.Web.PublishedModels.ColoredPragraphEditor expects argument of type Umbraco.Core.Models.PublishedContent.IPublishedContent, but got Our.Umbraco.DocTypeGridEditor.Models.DetachedPublishedElement.
What can i do ?!!
Hi Ahmed,
{edit} Nope what I wrote here originally was wrong, miss read your question! sorry.
Nik
New idea-
Have you remembered to rebuild your Models via Models builder? :-)
I did, didn't work for me.
Starting on Umbraco, we have exactly the same issue. Could this be related to the changes to the ModelBuilder in v8.5.2 (embedded)?
My problem is solved.
In the view which represents my new Type, I was inheriting from @inherits UmbracoViewPage
When I changed it to @inherits UmbracoViewPage< Umbraco.Web.PublishedModels.Test> it worked "Test" is the name of the new Data Type.
Ahmed.
is working on a reply...