<@698103747351543828> that's what I was thinking....
# package-development
h
@Sebastiaan that's what I was thinking. It's the first time I'm trying to have models in classess - do I have to configure ModelsBuilder somehow to make it aware of it?
d
Do I understand it correctly that you want to generate Umbraco document types with a package? In that case, creating published content models might not be the right direction to go. You'd have to create document types in a migration with the
IContentTypeService
.
h
let me share the whole concept, maybe it can be done somehow easier 🙂
There is a business need that whenever a new content of particular type is created (Customer), a new membergroup is created
*MembershipGroup
I wanted to move the whole functionality to the package
like to create some marker interface
then, to add this interface to all our business types which need to be watched for creation
nd in the notification handler just check if the newly created document inherits my marker interface
if so, create the neccesary membership groups
I' have never been using the migration in Umbraco but seems reasonable -it will let us create the type without user interaction and that's what I want
thank you for the idea 🙂
d
Ah, that's a cool concept, I see what you mean. It'd be very convenient to have the composition automatically generate so you don't have to struggle with configs or naming conventions or whatever.
You can probably take some inspiration from the starter kits for Umbraco that are publicly available
h
great shot! thank you a million 🙂
there's even possibility to re-use the xml exported from the site to create these types