-
Notifications
You must be signed in to change notification settings - Fork 46
Open
Description
I have a Post model that is Umbraco-generated. I have created a partial Post class that implements a property like so:
public partial class Post
{
///<summary>
/// OgImage: If the image is left empty, the page's "feature image" will be used.
///</summary>
[ImplementPropertyType("ogImage")]
public IPublishedContent OgImage
{
get
{
if (OpenGraph.GetOgImage(this) is null)
{
return MainImage;
}
return OpenGraph.GetOgImage(this);
}
}
}
That 'ogImage' property is still being generated by Umbraco in the other partial class as:
///<summary>
/// OgImage: If the image is left empty, the page's "feature image" will be used.
///</summary>
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder", "8.1.6")]
[ImplementPropertyType("ogImage")]
public IPublishedContent OgImage => OpenGraph.GetOgImage(this);
I'm running Umbraco 8.6 and Models Builder 8.1.6. My Models Builder configuration is LiveAppData.
lindeberg
Metadata
Metadata
Assignees
Labels
No labels