Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Gordon Saxby 1444 posts 1855 karma points
    Mar 22, 2017 @ 16:47
    Gordon Saxby
    0

    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:

        [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?

  • Jeavon Leopold 3072 posts 13628 karma points MVP 10x admin c-trib
    Mar 22, 2017 @ 16:49
    Jeavon Leopold
    100

    Do you have the Umbraco Core Property Value Converters package installed in both projects?

  • Gordon Saxby 1444 posts 1855 karma points
    Mar 22, 2017 @ 16:50
    Gordon Saxby
    0

    No, just the "extensions" project - should it be in both?

  • Jeavon Leopold 3072 posts 13628 karma points MVP 10x admin c-trib
    Mar 22, 2017 @ 16:51
    Jeavon Leopold
    0

    Yes, it needs to be in both

  • Gordon Saxby 1444 posts 1855 karma points
    Mar 22, 2017 @ 16:56
    Gordon Saxby
    0

    OK - that seems to have fixed it :-)

    I copied the setup from another project, although that was using v2 of the converters.

  • Jeavon Leopold 3072 posts 13628 karma points MVP 10x admin c-trib
    Mar 22, 2017 @ 16:57
    Jeavon Leopold
    0

    Cool, likely last time too as they are built into Umbraco v7.6 :)

Please Sign in or register to post replies

Write your reply to:

Draft