Display(Model.Header)

Topics: Core, General
May 4, 2013 at 3:15 PM
Edited May 4, 2013 at 3:17 PM
i am not very sure where the @Display(Model.Header) come from inside this .cshtml:
<article class="media-item @contentTypeClassName">
<header>
    @Display(Model.Header)
    @if (Model.Meta != null) {
    <div class="metadata">
        @Display(Model.Meta)
    </div>
    }
</header>
@Display(Model.Content)
@if(Model.Footer != null) {
<footer>
    @Display(Model.Footer)
</footer>
}

</article>

is the Header a kind of zone, and come from the placement.info, such as:

<Match DisplayType="SummaryAdmin">
<Place Parts_Document_Metadata="Meta:6"
       Parts_Document_SummaryAdmin="Header"
       />

</Match>

thx
andy
May 4, 2013 at 3:21 PM
Edited May 4, 2013 at 3:26 PM
and also Model is possibly Layout zone, right?
here it is in MediaLibrary, so this Model is Media which is from migration.cs , Right?
Coordinator
May 4, 2013 at 9:01 PM
Edited May 4, 2013 at 9:02 PM
Yes, Header is a zone. It does not "come from placement" however. Zones are just dynamic properties of their parent shape. They are created the first time they are used.
Model in this context is the layout shape (not a zone), if the template you are seeing that in is a layout.cshtml file or an alternate of that. It looks like a Content shape however. What file is this?
Not sure I understand your question about Medis and migration.cs.