Different Layout For Widget Summary Display

Topics: Core, Customizing Orchard, Writing modules, Writing themes
Aug 31, 2012 at 3:08 AM
Edited Aug 31, 2012 at 5:31 AM

Hi I now have a projection I'm using in a widget to display 5 recent items..

Just wondering how do I JUST target the display for the widget so I can theme it appropriately?


I've stumbled across the naming convention

Content-Auction.Summary.cshtml which let's me modify the layout for an AuctionPart I created..


but how would i take that one step further and create a different placement and cshtml file for the listing of an AuctionPart in a widget?

I've tried Widget-UpcomingAuction.cshtml as an alternate.. where my widget is a projection of AuctionPart...

how do alternates work with projections?




Sep 12, 2012 at 11:09 PM

Create an explicit layout in your query, set the displaytype from there, and select that in your widget.