Skip to content

Commit

Permalink
Add CommonPart docs (#13596)
Browse files Browse the repository at this point in the history
  • Loading branch information
hishamco authored May 25, 2023
1 parent f37bf58 commit e56b937
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/docs/reference/modules/ContentParts/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Orchard Core allows you to add Parts to a content type.
| --- | --- |
| [`TitlePart`](../../modules/Title/README.md) | Allows you to add a title. |
| [`AutoroutePart`](../../modules/Autoroute/README.md) | Allows you to add a permalink. |
| `CommonPart` | Allows you to edit the creation date and the owner of the content. |
| [`CommonPart`](../../modules/Contents/README.md) | Allows you to edit the creation date and the owner of the content. |
| [`AliasPart`](../../modules/Alias/README.md) | Allows you to add an alias. |
| [`HtmlBodyPart`](../../modules/Html/README.md) | Allows you to add an HTML body. |
| [`MarkdownPart`](../../modules/Markdown/README.md) | Allows you to add a Markdown body. |
Expand Down
13 changes: 13 additions & 0 deletions src/docs/reference/modules/Contents/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,19 @@

This module provides Content Management services.

## CommonPart

Attach this part to your content items to edit the common properties like `CreatedUtc` and `Owner` of a `ContentItem`.

The following properties are available on `CommonPart`:

| Name | Type | Description |
| -----| ---- |------------ |
| `CreatedUtc` | `DateTime` | The HTML content in the body. |
| `Owner` | `string` | The HTML content in the body. |
| `Content` | | The raw content of the part. |
| `ContentItem` | | The content item containing this part. |

## Liquid

You can access content items from liquid views and templates by using the `Content` property.
Expand Down

0 comments on commit e56b937

Please sign in to comment.