Copied to clipboard

Flag this post as spam?

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


  • Rhiannon 1 post 72 karma points
    May 22, 2019 @ 16:27
    Rhiannon
    1

    Models Builder in Umbraco 8

    I've just started a new project in Umbraco 8 and I can't seem to generate the models so they're not pulling through on visual studio. I can't see an option to generate models when I save a new doc type and I don't have a "generate models" button appearing on the "models builder" tab.

    Any Ideas how I do this? :)

  • Owain Williams 482 posts 1414 karma points MVP 7x c-trib
    May 30, 2019 @ 10:29
    Owain Williams
    0

    Hi Rhiannon, What mode do you have in your web.config file for ModelsBuilder?

    The mode is indicated by the Umbraco.ModelsBuilder.ModelsMode key in the appSettings section of the Web.config file.

    Depending on the setting within there, you won't see the models as they will be compiled in to a dll.

    This page explains the different options availble to you: https://our.umbraco.com/documentation/Reference/Templating/Modelsbuilder/Builder-Modes

  • Bryna 74 posts 260 karma points
    May 30, 2019 @ 21:58
    Bryna
    1

    Assuming that you are in the default purelive mode, you will want to ensure that you are seeing hidden files in your VS project tree. They should be under App_Data/Models by default.

Please Sign in or register to post replies

Write your reply to:

Draft