开发者

how to hide list content from placement.info file in orchardproject.net

开发者 https://www.devze.com 2023-03-16 14:00 出处:网络
I have a \"Division\" that is a container for list开发者_JAVA百科 of \"Brand\".When viewing the detail page for division, I\'d like to hide the brands.I thought I could do this in the placement.info f

I have a "Division" that is a container for list开发者_JAVA百科 of "Brand". When viewing the detail page for division, I'd like to hide the brands. I thought I could do this in the placement.info file like this.

<Match ContentType="Division">
    <Match DisplayType="Detail">
        <Place Parts_Container_List="-" />
    </Match>
</Match>   

I've tried a bunch of other attribute names in the Place element but no luck. If I put that field will be removed.

Any idea?


That would make the Parts_Container_List shape to not render at all when viewing Detail display view for Division type and that's correct. But there is no Parts_Container_List shape defined anywhere so maybe this is the problem? Or maybe it's your custom shape?

The Shape Tracing feature is very useful in such cases as it allows you to view the exact names of currently displayed shapes.

Could you elaborate more on the problem and what you'd like to achieve?

0

精彩评论

暂无评论...
验证码 换一张
取 消