How to apply template to my part created in dashboard?

Topics: General
Jul 18, 2012 at 9:58 AM

I have created ItemImagePart in Orchard Dashboard, this part contains two media fields (Thumbnail and Image).

Now I need to create template for part, but I don't see shape for this part.

How to apply template to my part created in dashboard?

Does Orchard create shapes for dashboard created parts?

 

Developer
Jul 23, 2012 at 11:47 AM

Orchard doesn't create shapes for parts; it's the Drivers that are responsible for this. Since you've created a part using the dashboard, there is no driver for that part. If you do need to create shapes for this part, you'll have to create a class called ItemImagePart and a driver for it and implement the Display method. From there, you can create any shape you like. By convention, drivers create shapes starting with "Parts_".