@Display(Model.Content) rendering other fields

Topics: Core, General
Nov 25, 2015 at 9:14 PM
Edited Nov 25, 2015 at 9:14 PM
Hello all,

I have a custom part, BlogPostPart, with some custom fields.

I have been rendering these in my views with @Display(Model.ContentItem.BlogPostPart.BlogPostAuthor.Value) and it works fine.

First question, is this the best way to do this?

Second question, why do the custom fields in the BlogPostPart get rendered as well when I call @Display(Model.Content) ?