Overriding the DetailAdmin view for a content type with a list part. #11575
-
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 11 replies
-
You need to build display using display type "DetailAdmin" |
Beta Was this translation helpful? Give feedback.
-
@DrewBrasher I guess list part is an exceptional case where it's not just Also if you are using Inside var partShape = Model.Content.Named("ListPart-ListPartDetailAdmin")`; |
Beta Was this translation helpful? Give feedback.
@DrewBrasher I guess list part is an exceptional case where it's not just
PartName
but it also consider ShapeType
for naming the shape. As List can have more than one kind of shape types. So it would be named as[PartName]-[ShapeType]
See https://docs.orchardcore.net/en/latest/docs/reference/modules/Templates/#razorAlso if you are using
ContentItem
in dashboard thenContent-BoardPacket.DetailAdmin.cshtml
is invalid template - you need to name it asDashboardWidget-BoardPacket.DetailAdmin.cshtml
instead.Inside
DashboardWidget-BoardPacket.DetailAdmin.cshtml
you can referenceListPart
shape as following