Closed FransdeJong closed 3 years ago
Linked issue as per Stephans request: https://github.com/umbraco/Umbraco-CMS/issues/5280
@FransdeJong The reason being that when you generate models, you app will restart (since it's generating code .. it's kinda like what you see happening with modelsbuilder) .. and it can be a pain to work with if you need to edit multiple things and don't really care about the generation to be done until you have done all of your batch of changes.
Thanks for adding the issue here so it can get some attention 😃
I'll mark it as up for grabs for now and point people in the direction of the repo where it will need to be done: https://github.com/zpqrtbnk/Zbu.ModelsBuilder
This item has been added to our backlog AB#1107
Hiya @FransdeJong,
Just wanted to let you know that we noticed that this issue got a bit stale and might not be relevant any more.
We will close this issue for now but we're happy to open it up again if you think it's still relevant (for example: it's a feature request that's not yet implemented, or it's a bug that's not yet been fixed).
To open it this issue up again, you can write @umbrabot still relevant
in a new comment as the first line. It would be super helpful for us if on the next line you could let us know why you think it's still relevant.
For example:
@umbrabot still relevant This bug can still be reproduced in version
x.y.z
This will reopen the issue in the next few hours.
Thanks, from your friendly Umbraco GitHub bot :robot: :slightly_smiling_face:
I'm still interested in a feature like this, what would need to happen (and where) to implement this?
At Codegarden I had a nice discussion with @clausjensen and @zpqrtbnk about using modelsbuilder to generate a class with all the dictionary items. This gets rid of all the strings in the views.
Things we discussed are:
This would mean we could get the dictionary items strongly types and get errors when you make a typo.
A Nice to have would be if you have nested items they would be nested in the class as well? For example:
Dictionary -- Forms ---- Next
Code DictionaryClass.Forms.Next()
How can we get this request to a state where HQ and or the community can pick this up?