Copied to clipboard

Flag this post as spam?

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


  • AB 29 posts 80 karma points
    Jan 18, 2016 @ 15:23
    AB
    0

    Strongly typed models in controller - uCreate

    Hi all,

    Has anyone managed to use strongly typed models in their controllers using uCreate?

    Thanks

    A

  • Samira 113 posts 452 karma points
    Jan 19, 2016 @ 05:26
    Samira
    1

    Hi

    Try this Firstly add app setting in your web.config file.

    This tells UCreate to sync your doc types, media types, data types, member types and member groups on application start.

    <appSettings>
        ...
        <add key="UCreateSyncEnabled" value="true" />
        ...
    </appSettings>
    

    hope this help

    Regards,

    Samira

  • AB 29 posts 80 karma points
    Jan 19, 2016 @ 12:28
    AB
    1

    Thanks Samira.

    I already have that setting configured. I have seen lots of examples of using strongly typed models in Views. However, I have seen no examples of using strongly type models within Controllers.

    Is a simple conversion like the following enough:

    var page = CurrentPage as HomePage

Please Sign in or register to post replies

Write your reply to:

Draft