0

私はまだオーチャードに不慣れです。

私は以下のように定義された2つのコンテンツタイプを持っています

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>

このモジュールでのみリストのレンダリングを変更したいだけです。

誰かが私に方向を教えてもらえますか?

4

1 に答える 1

1

これを読んでください:http://weblogs.asp.net/bleroy/archive/2011/03/27/taking-over-list-rendering-in-orchard.aspxそしてこれ:http : //weblogs.asp.net/bleroy /archive/2011/05/23/orchard-list-customization-first-item-template.aspx

于 2012-06-01T23:29:10.293 に答える