ModelsBuilder - Different namespace for different document types
Hi there,
I'm using Umbraco v8 with ModelsBuilder. Everything is working fine up until now.
Now, I have been tasked to add a second site to the Umbraco installation. Currently, it was a single website installation.
This is basically not a problem. I figured out how to set it up. My problem is with ModelsBuilder.
Consider this: Site A and Site B both should have an "Article" Document Type. Both "Article"s will have different properties, thus I don't want them to be shared between the Sites A and B.
What I could do, is have 2 Document Types: SiteAArticle and SiteBArticle. Modelsbuilder will then generate 2 distinct classes in the same namespace like so:
MyNameSpace.SiteAArticle
MyNameSpace.SiteBArticle
However, I would like to avoid that. I would rather have the document types in distinct namespaces, like so:
ModelsBuilder - Different namespace for different document types
Hi there,
I'm using Umbraco v8 with ModelsBuilder. Everything is working fine up until now.
Now, I have been tasked to add a second site to the Umbraco installation. Currently, it was a single website installation.
This is basically not a problem. I figured out how to set it up. My problem is with ModelsBuilder.
Consider this: Site A and Site B both should have an "Article" Document Type. Both "Article"s will have different properties, thus I don't want them to be shared between the Sites A and B.
What I could do, is have 2 Document Types: SiteAArticle and SiteBArticle. Modelsbuilder will then generate 2 distinct classes in the same namespace like so:
However, I would like to avoid that. I would rather have the document types in distinct namespaces, like so:
I was hoping that if I split
Is that even possible? How should I handle such situations? Or should I just avoid having multiple websites inside a single Umbraco installation?
Kind regards
Gilles
is working on a reply...