Easy Entity Flags is an Umbraco package that lets you display configurable icon flags on content tree items, collection items, and document items using only appsettings.json.
Add an EasyEntityFlags section to your appsettings.json:
{
"EasyEntityFlags": {
"EntityFlags": [
{
"Label": "No Index",
"PropertyAlias": "noIndex",
"Icon": "icon-badge-remove",
"IconColorAlias": "red"
}
]
}
}| Property | Required | Description |
|---|---|---|
PropertyAlias |
Yes | The alias of the content property to evaluate |
Icon |
Yes | Umbraco icon code (e.g. icon-badge-remove) |
Label |
Yes | Tooltip label shown in the backoffice. Supports Umbraco localization keys prefixed with # (e.g. #general_name) — see all keys |
Condition |
No | When to show the flag — see below (default: IsTrue) |
IconColorAlias |
No | Color alias (e.g. red, orange, green) |
ForEntityTypes |
No | Entity types to apply the flag to (default: ["document"]) |
| Value | Shows flag when… |
|---|---|
IsTrue |
The property is a boolean and is true (default) |
IsFalse |
The property is a boolean and is false |
HasValue |
The property has a value |
HasNoValue |
The property has no value (field is empty) |
Flag content that is missing an SEO title:
{
"Label": "Missing SEO title",
"PropertyAlias": "metaTitle",
"Icon": "icon-badge-remove",
"IconColorAlias": "red",
"Condition": "HasNoValue"
}Flag content where noIndex is turned on:
{
"Label": "No Index",
"PropertyAlias": "noIndex",
"Icon": "icon-eye-close",
"IconColorAlias": "red",
"Condition": "IsTrue"
}Flag content where an isIndexable toggle is turned off (inverted boolean):
{
"Label": "Not indexable",
"PropertyAlias": "isIndexable",
"Icon": "icon-eye-close",
"IconColorAlias": "red",
"Condition": "IsFalse"
}
