-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dashboard widget is showing up after removing DashboardWidget
stereotype
#14596
Comments
@agriffard if you're AdminWidget has ListPart attached to it, why do you expect it not to show up? Can you please share the recipe you are using to create these content types and maybe the Dashboard content items? |
Also, I do not see a duplicate title. Here is the content type I created {
"steps": [
{
"name": "ContentDefinition",
"ContentTypes": [
{
"Name": "AdminWidgetWithListPart",
"DisplayName": "AdminWidgetWithListPart",
"Settings": {
"ContentTypeSettings": {
"Creatable": true,
"Listable": true,
"Draftable": true,
"Versionable": true,
"Stereotype": "DashboardWidget",
"Securable": true
},
"FullTextAspectSettings": {}
},
"ContentTypePartDefinitionRecords": [
{
"PartName": "AdminWidgetWithListPart",
"Name": "AdminWidgetWithListPart",
"Settings": {
"ContentTypePartSettings": {
"Position": "1"
}
}
},
{
"PartName": "ListPart",
"Name": "ListPart",
"Settings": {
"ContentTypePartSettings": {
"Position": "2"
},
"ListPartSettings": {
"PageSize": 10,
"ContainedContentTypes": [
"Article"
]
}
}
},
{
"PartName": "TitlePart",
"Name": "TitlePart",
"Settings": {
"ContentTypePartSettings": {
"Position": "0"
}
}
},
{
"PartName": "DashboardPart",
"Name": "DashboardPart",
"Settings": {
"ContentTypePartSettings": {
"Position": "3"
}
}
}
]
}
],
"ContentParts": []
}
]
} It works as expected And after styling my own
|
I didn't use a recipe, just added all the parts. I don't expect to see it because I didn't add the |
Here is what I have in the Document, linked to the Dashboard:
Note that the following json is still there, even if I remove the DashboardPart and resave the content item: |
The So removing |
Ok thank you for the explanations, I am closing it. |
@agriffard I am re-opeing this issue. Note what I mentioned in my last comment
I think this is not a good behavior and we should address it. When a content item of a type |
DashboardWidget
stereotype
To test the admin theme's Bootstrap 5.3.2 PR, I created a Content type with all parts in order to show them all in Edit.
A very weird side effect is that the Dashboard displays the ListPart in its widgets.
There is also a Duplicated Dashboard title.
The text was updated successfully, but these errors were encountered: