Skip to content
Merged
Changes from 2 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
28 changes: 27 additions & 1 deletion 16/umbraco-cms/customizing/back-office-signs.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
A Flag can be the determinant for a Sign by declaring the `forEntityFlags` as part of its Manifest.

Example:

```json
...
forEntityFlags: "Umb.ScheduledForPublish",
Expand All @@ -33,7 +34,32 @@

## Displaying a Sign

To display a Sign in the backoffice, you register an entitySign extension and bind it to one or more flags using the forEntityFlags property. If you're using an icon variant, you must set kind: "icon" and provide both meta.iconName and meta.label, so the UI has the necessary visual and accessible information to render.

Check warning on line 37 in 16/umbraco-cms/customizing/back-office-signs.md

View workflow job for this annotation

GitHub Actions / runner / vale

[vale] reported by reviewdog 🐢 [UmbracoDocs.SentenceLength] Write shorter sentences (less than 25 words). For content inside note or warning blocks, add blank lines around the content. Raw Output: {"message": "[UmbracoDocs.SentenceLength] Write shorter sentences (less than 25 words). For content inside note or warning blocks, add blank lines around the content.", "location": {"path": "16/umbraco-cms/customizing/back-office-signs.md", "range": {"start": {"line": 37, "column": 143}}}, "severity": "WARNING"}

Example:

```typescript
import type { UmbExtensionManifest } from "@umbraco-cms/backoffice/extension-registry";
import { UMB_DOCUMENT_ENTITY_TYPE } from "@umbraco-cms/backoffice/document";

export const manifests: UmbExtensionManifest = {
type: "entitySign",
kind: "icon",
alias: "Umb.EntitySign.Document.IsProtected",
name: "Is Protected Document Entity Sign",
forEntityTypes: [UMB_DOCUMENT_ENTITY_TYPE], // Where it can appear
forEntityFlags: ["Umb.IsProtected"], // <---Binding part-When it should appear
weight: 1000,
meta: {
iconName: "icon-lock", // Built-in or custom icon name
label: "Protected", // Visible/accessible label
iconColorAlias: "red",
},
};
```

When an entity includes the Umb.IsProtected flag, this Sign appears next to it in the UI, indicating that the item is protected.

{% hint style="info" %}
The client extension for backoffice signs will be available in Umbraco 16.4 / 17.0.
{% endhint %}

Loading