Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi,
I 'inherited' a website with Umbraco ;-), the developer somehow managed to generate a model called IMaster. How is that possible? I cann't find anything called IMaster?
//------------------------------------------------------------------------------ // //------------------------------------------------------------------------------
...
namespace Orca.Homepage.Core.PublishedContentModels { // Mixin content Type 1047 with alias "master" ///
The other question is, how to generate something like that:
namespace Orca.Homepage.Core.PublishedContentModels { // Mixin content Type 1216 with alias "contentPage" ///
/// <summary>ContentPage</summary> [PublishedContentModel("contentPage")] public partial class ContentPage : PublishedContentModel, IContentPage {
Thank you regards Dominik
You probably have a document, that is composed of a "master" composition/ documenttype
Think of the "I", as "is composed of".
Typically, you'd have "SEO" as a document type, which you can add to other document types. You could then do something like...
If (Model is ISEO) {
@Model.MetaTitle }
Hi Paul,
there is a File "Master.generated.cs" with this line of code "public partial interface IMaster : IPublishedContent".
When I was learning Umbraco, I generated also a Master-File, but the line was "public partial class Master : PublishedContent" (as I recall).
Which Definition or Setting or Config changes the way Umbraco generates the File to IMaster?
Regards Dominik
Thats part of the ModelsBuilder
You should not be touching those autogenerated files :-) As they are auto generated by Umbraco.
I don't want to edit the file manually, I want to know how I can modify the settings, that ModelsBuilder generates the file with interfaces.
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
How to generate IMaster
Hi,
I 'inherited' a website with Umbraco ;-), the developer somehow managed to generate a model called IMaster. How is that possible? I cann't find anything called IMaster?
//------------------------------------------------------------------------------ // //------------------------------------------------------------------------------
...
namespace Orca.Homepage.Core.PublishedContentModels { // Mixin content Type 1047 with alias "master" ///
The other question is, how to generate something like that:
//------------------------------------------------------------------------------ // //------------------------------------------------------------------------------
...
namespace Orca.Homepage.Core.PublishedContentModels { // Mixin content Type 1216 with alias "contentPage" ///
Thank you regards Dominik
You probably have a document, that is composed of a "master" composition/ documenttype
Think of the "I", as "is composed of".
Typically, you'd have "SEO" as a document type, which you can add to other document types. You could then do something like...
If (Model is ISEO) {
@Model.MetaTitle }
Hi Paul,
there is a File "Master.generated.cs" with this line of code "public partial interface IMaster : IPublishedContent".
When I was learning Umbraco, I generated also a Master-File, but the line was "public partial class Master : PublishedContent" (as I recall).
Which Definition or Setting or Config changes the way Umbraco generates the File to IMaster?
Regards Dominik
Thats part of the ModelsBuilder
You should not be touching those autogenerated files :-) As they are auto generated by Umbraco.
I don't want to edit the file manually, I want to know how I can modify the settings, that ModelsBuilder generates the file with interfaces.
is working on a reply...