Title (OrchardCore.Title)
标题(OrchardCore.Title)
The Title module provides a Title Part that lets user define a title for a content item.
标题模块提供标题部分,允许用户定义内容项的标题。
It also defines the DisplayText
property of the ContentItemMetadata
aspect.
它还定义了ContentItemMetadata
方面的DisplayText
属性。
Theming
主题化
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
| 细节
| 标题:5
| TitlePartViewModel
|
| TitlePart
| Summary
| Header:10
| TitlePartViewModel
|
| TitlePart
| 摘要
| 标题:10
| TitlePartViewModel
|
View Model
查看模型
The following properties are available in the TitlePartViewModel
class.
TitlePartViewModel
类中提供了以下属性。
| Name | Type | Description |
|名称|输入|说明|
| -----| ---- |------------ |
| ----- | ---- | ------------ |
| Title
| string
| The title property of the part.
| 标题
| string
|零件的title属性。
| TitlePart
| TitlePart
| The TitlePart
instance.
| TitlePart
| TitlePart
| TitlePart
实例。