Coder Social home page Coder Social logo

Comments (6)

zpqrtbnk avatar zpqrtbnk commented on August 17, 2024

That is how it should be, though it could be better documented. What it tells you is that

  • The API for Visual Studio is enabled
  • The built-in PublishedContentModelFactory is enabled
  • No namespace has been configured for models

This is the default config. Now if you just want models in the backend (no Visual Studio) you want to edit web.config following these instructions to either enable Live models or AppCode models. The difference is explained in the doc.

Thinking about creating a "quick start" page in the doc to explain this.

from modelsbuilder.original.

Mantus667 avatar Mantus667 commented on August 17, 2024

Thanks for making things clear.
Thought something was wrong with the dashboard.

When will the AppCode Models be generated? Is there a way to trigger that?
Restart the web? Touching web.config?

"Quick start" page would be helpfull i think.

from modelsbuilder.original.

zpqrtbnk avatar zpqrtbnk commented on August 17, 2024
  • In AppCode models: once enabled there will be a "generate" button in the dashboard. Models are generated when you click the button.
  • In Live models: models are generated when Umbraco starts or when you change some content type.

I'd go with AppCode first - easiest to understand what's going on. And I realize that the "quick start" is mandatory in fact!

from modelsbuilder.original.

Mantus667 avatar Mantus667 commented on August 17, 2024

So after adding these lines to appSettings the Button should show up:

<add key="EnableAppCodeModels" value="true" />
<add key="ModelsNamespace" value="MyModels" />

which it doesn't. Is the Umbraco Cache making fun out of me again here?

After all that, yeah think that would be really mandatory to not have you bother with these "stupid" questions.

from modelsbuilder.original.

zpqrtbnk avatar zpqrtbnk commented on August 17, 2024

No, it's me being stupid. The correct keys should be Zbu.ModelsBuilder. + the option eg Zbu.ModelsBuilder.EnableAppCodeModels. Fixing the instructions right now. Thanks for beta testing!

from modelsbuilder.original.

Mantus667 avatar Mantus667 commented on August 17, 2024

You're welcome!
Now the generation with the AppData Models has worked. Now I'm playing a little bit with it.
Thanks for the help!

from modelsbuilder.original.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.