标题模块提供Title Part ,允许用户定义内容项的标题。它还定义了ContentItemMetadata方面的DisplayText属性
The following shapes are rendered when the Title Part is attached to a content type.
Name | Display Type | Default Location | Model Type |
---|---|---|---|
TitlePart |
Detail |
Header:5 |
TitlePartViewModel |
TitlePart |
Summary |
Header:10 |
TitlePartViewModel |
TitlePartViewModel类中提供了以下属性
Name | Type | Description |
---|---|---|
Title |
string |
The title property of the part. |
TitlePart |
TitlePart |
The TitlePart instance. |
Orchard Core 文档翻译 (四)CMS ModulesTitle (OrchardCore.Title)
原文:https://www.cnblogs.com/Qbit/p/9746464.html