【问题标题】:How to override list shape rendering in module Orchard如何在模块 Orchard 中覆盖列表形状渲染
【发布时间】:2012-06-06 15:57:20
【问题描述】:

我还是果园新手。

我有两种内容类型定义如下

public int Create() {
            // Define the tab list type which will
            // contain body details, common, route, menu and be a container
            ContentDefinitionManager.AlterTypeDefinition("TabList",
                cfg => cfg
                    .WithPart("BodyPart")
                    .WithPart("CommonPart")
                    .WithPart("RoutePart")
                    .WithPart("MenuPart")
                    .WithPart("ContainerPart")
                    .Creatable());

            // Define the tab type which will
            // contain body details, common, be containable.
            ContentDefinitionManager.AlterTypeDefinition("Tab",
                cfg => cfg
                    .WithPart("BodyPart")
                    .WithPart("TitlePart")
                    .WithPart("CommonPart")
                    .WithPart("ContainablePart")
                    .Creatable());
            return 1;
        }

我正在尝试更改我的模块中的列表标记呈现 来自:

<ul>
<li>...content-item</li>
...
</ul>

<ul>
<li>content-item.Title</li>
...
</ul>
<ul>
<li>content-item.Body</li>
...
</ul>

而且我只想更改此模块的列表渲染。

谁能给我指个方向。

【问题讨论】:

    标签: asp.net-mvc-3 dynamic-data orchardcms shape


    【解决方案1】:

    【讨论】:

    • 感谢链接 Bertrand,我已经阅读了链接,但是我的问题是如何将“TabList”连接到我定义的新形状?我在中间有点迷失了。
    • 文章解释说:你做一个替补。
    猜你喜欢
    • 2013-12-23
    • 1970-01-01
    • 1970-01-01
    • 2017-06-28
    • 1970-01-01
    • 1970-01-01
    • 2021-01-02
    • 1970-01-01
    • 2013-06-22
    相关资源
    最近更新 更多