-
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
Renamed SummaryAdmin shapes of ContentsDriver #7086
Conversation
So the issue is that using a seperator in the shape name stops placement from hitting it? My gut feel is that we might be better off renaming the shapes, than having a differentiator that noone will know about? A differentiator would normally have something regarding a content item / part / field name, so it's a bit weird to be differentiating between zones. Related #5151 (feel free to add a comment about how placement is impacted by seperators @ns8482e |
Or we could be adding alternates oob as is commented 10 lines above OrchardCore/src/OrchardCore.Modules/OrchardCore.Contents/Drivers/ContentsDriver.cs Line 27 in d64a4cb
|
Yes, It's because original shape type is identified before
Yes, I can update the PR to change ShapeType to to not have e.g. Contents_SummaryAdmin__Tags ----> SummaryAdminTags ---->SummaryAdminTags.cshtml |
Wouldn't it be |
Sure It will work just thought to remove prefix |
I think the I would keep it, otherwise there is no indicator that the shape is even content related. It would be good to see the change, and I want to discuss this at triage
|
Yes It's related #5151 and #5126
Ok, I agree for And it's also align with the other shape So following placement would more appropriate
compared to
|
|
Read display type from context or hardcode in shape type? e.g.
|
Following
ContentsDriver
creates four shapes with different shape types.OrchardCore/src/OrchardCore.Modules/OrchardCore.Contents/Drivers/ContentsDriver.cs
Lines 51 to 54 in 85b4f99
However the actual shape type is considered before
__
i.e. all above shapes are resolved to the same shape typeContents_SummaryAdmin
Renamed these shapes as following to apply unique placement record for each shape
Contents_SummaryAdmin__Tags
renamed toContentsTags_SummaryAdmin
Contents_SummaryAdmin__Meta
renamed toContentsMeta_SummaryAdmin
Contents_SummaryAdmin__Button__Edit
renamed toContentsButtonEdit_SummaryAdmin
Contents_SummaryAdmin__Button__Actions
renamed toContentsButtonActions_SummaryAdmin
so that placement will target single shape type.
Fixes #7002