Skip to content
Discussion options

You must be logged in to vote

@DrewBrasher I guess list part is an exceptional case where it's not just PartName but it also consider Shape Type 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/#razor

Also if you are using ContentItem in dashboard then Content-BoardPacket.DetailAdmin.cshtml is invalid template - you need to name it as DashboardWidget-BoardPacket.DetailAdmin.cshtml instead.

Inside DashboardWidget-BoardPacket.DetailAdmin.cshtml you can reference ListPart shape as following

 var  partShape  = Model.Content.Named("ListPart-ListPartDetailAdmin")`;

Replies: 2 comments 11 replies

Comment options

You must be logged in to vote
10 replies
@Skrypt
Comment options

@DrewBrasher
Comment options

@ns8482e
Comment options

@DrewBrasher
Comment options

@Skrypt
Comment options

Comment options

You must be logged in to vote
1 reply
@DrewBrasher
Comment options

Answer selected by DrewBrasher
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants