How to suppress parts in Orchard based on zone

2019-08-15 17:35发布

How can suppress the Tags Part of the summary How2 content type when it appears in the aside second. I have the following code in my placement.info file but that affects all summarized How2 content types.

<Match ContentType="How2"> 
   <Match DisplayType="Summary">
      <Place Fields_Common_Text-ToolsRequired="-"/>
      <Place Parts_Tags_ShowTags="Content:9.9"/>
   </Match>
</Match>

I would only like to suppress the tags only if they appear in the asidesecond zone which is a projection widget. Is there an easy way to do this?

1条回答
ら.Afraid
2楼-- · 2019-08-15 17:44

I had this same question while developing a theme for my first Orchard website. It isn't possible to suppress the same ContentType with the same DisplayType based on the zone. You will have to create an alternate at a higher level or do some programming. See my answer here. I had the question answered on the Orchard discussion forum.

Hope that helps.

查看更多
登录 后发表回答