问题描述
当摘要How2内容类型排在第二位时,如何抑制其标签部分.我的placement.info文件中包含以下代码,但会影响所有汇总的How2内容类型.
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>
仅当标签出现在作为投影小部件的asidesecond区域中时,我才想隐藏标签.有没有简单的方法可以做到这一点?
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?
推荐答案
在为我的第一个Orchard网站开发主题时,我也遇到了同样的问题.无法基于区域抑制具有相同DisplayType的相同ContentType.您将不得不在更高级别上创建一个替代方案或进行一些编程.在此处看到我的答案.我在果园讨论论坛上回答了这个问题.
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.
希望有帮助.
这篇关于如何根据区域在果园中隐藏零件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!