Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@

# Understand and Extend

Models are generated as partial classes. In its most basic form, a model for content type `TextPage` ends up in a `TextPage.generated.cs` file and looks like:
Models are generated as partial classes. In its most basic form, a model for content type `TextPage` ends up in a `TextPage.generated.cs` file and looks like shown below.

{% include "../../../.gitbook/includes/obsolete-warning-ipublishedsnapshotaccessor.md" %}

Check warning on line 10 in 15/umbraco-cms/reference/templating/modelsbuilder/understand-and-extend.md

View workflow job for this annotation

GitHub Actions / runner / vale

[vale] reported by reviewdog 🐶 [UmbracoDocs.Brands] We prefer 'GitBook' over 'gitbook.' Raw Output: {"message": "[UmbracoDocs.Brands] We prefer 'GitBook' over 'gitbook.'", "location": {"path": "15/umbraco-cms/reference/templating/modelsbuilder/understand-and-extend.md", "range": {"start": {"line": 10, "column": 23}}}, "severity": "WARNING"}

```csharp
/// <summary>TextPage</summary>
Expand Down
4 changes: 3 additions & 1 deletion 15/umbraco-cms/reference/webhooks/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,9 @@

## Replace Webhook Events

Sometimes it is desirable to modify one of the standard Umbraco webhooks, for example, to change the Payload. This can be done by adding a custom implementation, as shown in the code example below:
Sometimes it is desirable to modify one of the standard Umbraco webhooks, for example, to change the Payload. This can be done by adding a custom implementation, as shown in the code example below.

{% include "../../.gitbook/includes/obsolete-warning-ipublishedsnapshotaccessor.md" %}

Check warning on line 137 in 15/umbraco-cms/reference/webhooks/README.md

View workflow job for this annotation

GitHub Actions / runner / vale

[vale] reported by reviewdog 🐶 [UmbracoDocs.Brands] We prefer 'GitBook' over 'gitbook.' Raw Output: {"message": "[UmbracoDocs.Brands] We prefer 'GitBook' over 'gitbook.'", "location": {"path": "15/umbraco-cms/reference/webhooks/README.md", "range": {"start": {"line": 137, "column": 20}}}, "severity": "WARNING"}

```csharp
[WebhookEvent("Content Published", Constants.WebhookEvents.Types.Content)]
Expand Down
2 changes: 2 additions & 0 deletions 15/umbraco-cms/reference/webhooks/expanding-webhook-events.md
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,8 @@

If we take a look at the `ContentPublishedWebhookEvent`, we can see how these methods are overriden.

{% include "../../../.gitbook/includes/obsolete-warning-ipublishedsnapshotaccessor.md" %}

Check warning on line 143 in 15/umbraco-cms/reference/webhooks/expanding-webhook-events.md

View workflow job for this annotation

GitHub Actions / runner / vale

[vale] reported by reviewdog 🐶 [UmbracoDocs.Brands] We prefer 'GitBook' over 'gitbook.' Raw Output: {"message": "[UmbracoDocs.Brands] We prefer 'GitBook' over 'gitbook.'", "location": {"path": "15/umbraco-cms/reference/webhooks/expanding-webhook-events.md", "range": {"start": {"line": 143, "column": 26}}}, "severity": "WARNING"}

```csharp
protected override IEnumerable<IContent> GetEntitiesFromNotification(ContentPublishedNotification notification) => notification.PublishedEntities;

Expand Down
Loading