OrchardDoc
OrchardDoc copied to clipboard
wrapper content seems to be wrong
http://docs.orchardproject.net/en/latest/Documentation/Understanding-placement-info/#wrapper
Says:
Create this file and put the following text in it:
<div class="htmlWrapperContent">
@Model.Html
</div>
But it seems like it's
@Display(Model.Metadata.ChildContent)
Not sure if that's in every case or not. I was working with a Part (Orchard.Cw.Disqus) but I found discussion on the web saying that it also worked for Fields.
Some of the wrappers use this shape from CoreShapes.cs:
[Shape]
public IHtmlString PlaceChildContent(dynamic Source) {
return Source.Metadata.ChildContent;
}
Which is used like @Display.PlaceChildContent(Source: Model)
This seems like an attempt to standardise it.
Some (widgets and elements) provide a shortcut on their shape under .Child which is implemented in the modules IShapeTableProvider like this.