Customize different template of Parts.Image.Summary for different zone (or different widget like projection widget and container widget)

Topics: Customizing Orchard
Sep 13, 2013 at 8:27 PM
Hi,
How we customize different template of Parts.Image.Summary for different zone (or different widget contain it like projection widget and container widget).

In my task, I have 3 container widget with 3 styles of display.
Ex: Container widget 1 in AsideSecond zone: display no image
Container widget 2 in content zone: display thumb image.
Container widget 3 in Featured: display fullzie image.

But the problem is, when i modified the Part.Image.Summary-Image.cshtml it change for all.
I found no sample of using shape or placement to solve it.
Any help.?
Sep 13, 2013 at 8:32 PM
Edited Sep 13, 2013 at 8:32 PM
Oct 3, 2013 at 1:44 PM
Any one have any idea how to accomplish this.
I have a blog page with the projection widget in the sidebar zone, for showing different posts based on taxonomy group.
I can't or don't know hot to target BlogPost content type in sidebar zone.

This is placement for my BlogPost
  <Match ContentType="BlogPost">
    <Match DisplayType="Detail">
      <Place Parts_Title="Header:1"/>
      <Place Parts_Tags_ShowTags="Header:after.7"/>
      <Place Parts_Common_Metadata="Header:after.8"/>
    </Match>
    <Match DisplayType="Summary">
      <Place Parts_Tags_ShowTags="Header:after.7"/>
      <Place Parts_Tags_ShowTags="Header:after.7"/>
    </Match>
  </Match>
Regards, Primož
Coordinator
Oct 4, 2013 at 3:29 AM
Widgets and zones have no way of knowing about the content item that happens to be rendered in the content zone of the layout, out of the box. There are however several modules on the gallery that enable you to create layer rules that filter by content type, such as this one: http://gallery.orchardproject.net/List/Modules/Orchard.Module.CyberStride.TypeLayerRule