modelsbuilder / ModelsBuilder.Original

The Community Models Builder for Umbraco
MIT License
114 stars 49 forks source link

Dashboard Error #1

Closed Mantus667 closed 10 years ago

Mantus667 commented 10 years ago

After installing the umbraco package and setting the appSettings in the web.config this is how the dashboard looks like. Think that's not how it should be...

zbuerror

zpqrtbnk commented 10 years ago

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

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.

Mantus667 commented 10 years ago

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.

zpqrtbnk commented 10 years ago

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

Mantus667 commented 10 years ago

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.

zpqrtbnk commented 10 years ago

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!

Mantus667 commented 10 years ago

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!