use conditions right

This commit is contained in:
Niels Lyngsø
2023-08-23 10:37:34 +02:00
parent 753a6ae372
commit 0e7d800265
2 changed files with 22 additions and 11 deletions

View File

@@ -29,9 +29,12 @@ Create an umbraco-package.json file in the root of your package.
"label": "My Dashboard",
"pathname": "my-dashboard"
},
"conditions": {
"sections": ["Umb.Section.Content"]
"conditions": [
{
"alias": "Umb.Condition.SectionAlias",
"match": "Umb.Section.Content"
}
]
}
]
}
@@ -157,9 +160,12 @@ Finally add an umbraco-package.json file in the root of your package folder `my-
"label": "My Dashboard",
"pathname": "my-dashboard"
},
"conditions": {
"sections": ["Umb.Section.Content"]
"conditions": [
{
"alias": "Umb.Condition.SectionAlias",
"match": "Umb.Section.Content"
}
]
}
]
}

View File

@@ -14,9 +14,14 @@
"type": "dashboard",
"meta": {
"label": "My Dashboard",
"pathname": "my-dashboard",
"sections": ["Umb.Section.Content"]
}
"pathname": "my-dashboard"
},
"conditions": [
{
"alias": "Umb.Condition.SectionAlias",
"match": "Umb.Section.Content"
}
]
}
]
}