You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been testing the Umbraco 7.2 beta with Document Type Compositions. When a Document Type inherits from multiple compositions it creates interfaces for these Document Types so it can inherit from these interfaces.
The properties on these interfaces are generated incorrectly. For example it generates the following:
// Mixin content Type 1204 with alias "Doc1"
/// <summary>Doc1</summary>
public partial interface IDoc1 : IPublishedContent
{
/// <summary>Text1</summary> string Text1 { get; }
}
/// <summary>Doc1</summary>
[PublishedContentModel("Doc1")]
public partial class Doc1 : PublishedContentModel, IDoc1
The Text1 property is on the same line as the summary and commented out because of that. If it's on a new line it works correctly.
The rest already works perfect. For example you can do something like this to get all the nodes that have a certain composition.
var docs = CurrentPage.Children<IDoc1>();
The text was updated successfully, but these errors were encountered:
I've been testing the Umbraco 7.2 beta with Document Type Compositions. When a Document Type inherits from multiple compositions it creates interfaces for these Document Types so it can inherit from these interfaces.
The properties on these interfaces are generated incorrectly. For example it generates the following:
The Text1 property is on the same line as the summary and commented out because of that. If it's on a new line it works correctly.
The rest already works perfect. For example you can do something like this to get all the nodes that have a certain composition.
The text was updated successfully, but these errors were encountered: