diff --git a/src/Umbraco.Web.UI.Client/README.md b/src/Umbraco.Web.UI.Client/README.md index e8e2e3b0b4..6308975ef4 100644 --- a/src/Umbraco.Web.UI.Client/README.md +++ b/src/Umbraco.Web.UI.Client/README.md @@ -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" + } + ] } ] } diff --git a/src/Umbraco.Web.UI.Client/utils/json-schema/test-package.json b/src/Umbraco.Web.UI.Client/utils/json-schema/test-package.json index 34edf0f9e9..4ddbf8a51f 100644 --- a/src/Umbraco.Web.UI.Client/utils/json-schema/test-package.json +++ b/src/Umbraco.Web.UI.Client/utils/json-schema/test-package.json @@ -6,7 +6,7 @@ { "name": "My Dashboard", "alias": "myDashboard", - + "weight": -10, "elementName": "my-dashboard", "js": "js/my-dashboard.js", @@ -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" + } + ] } ] -} \ No newline at end of file +}