Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
I have Umbraco 7.5.11 with ModelsBuilder and v3.1.2 of CorePropertyConverter.
I have a DocType with a standard "Content Picker", however when I generate models I get the following:
[ImplementPropertyType("postLoginSignupPage")] public object PostLoginSignupPage { get { return this.GetPropertyValue("postLoginSignupPage"); } }
which is returning "object" rather than "IPublishedContent".
The model code is in an "Extensions" project, separate to the "web" project.
Any ideas?
Do you have the Umbraco Core Property Value Converters package installed in both projects?
No, just the "extensions" project - should it be in both?
Yes, it needs to be in both
OK - that seems to have fixed it :-)
I copied the setup from another project, although that was using v2 of the converters.
Cool, likely last time too as they are built into Umbraco v7.6 :)
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Not working with Models Builder
I have Umbraco 7.5.11 with ModelsBuilder and v3.1.2 of CorePropertyConverter.
I have a DocType with a standard "Content Picker", however when I generate models I get the following:
which is returning "object" rather than "IPublishedContent".
The model code is in an "Extensions" project, separate to the "web" project.
Any ideas?
Do you have the Umbraco Core Property Value Converters package installed in both projects?
No, just the "extensions" project - should it be in both?
Yes, it needs to be in both
OK - that seems to have fixed it :-)
I copied the setup from another project, although that was using v2 of the converters.
Cool, likely last time too as they are built into Umbraco v7.6 :)
is working on a reply...