I am currently facing a problem concerning the way to display content items, and I need some help. Let me explain :
I made the choice of using a single ContentType to manage about everything on my Orchard website (news, static pages such as "about" page, "customers" page etc...). Let's call this ContentType
I created several lists that contain items of the MyType ContentType.
Although all my items are of the same type, I would like to display some
items differently. For example, my news list should not look like any other list on my website, although they contain objects of the same type (so the Summary view should be different I guess).
I saw it is possible to use Alternates (http://orchardproject.net/docs/Alternates.ashx) to use different templates, by matching conditions defined in the placement.info file (http://orchardproject.net/docs/Understanding-placement-info.ashx#Match_Element_3).
However, I am not satisfied with the 3 possible ways to match items, because :
- I cannot filter by ContentType (they all have the same ContentType, MyType)
- I cannot filter by DisplayType (I potentially want to customize 2 alternates for the Detailed view)
- I prefer not to filter by Path : I'd like to enter any URL for an item without wondering which rule is gonna be matched.
So my question is, has anyone faced this kind of problem ? Is there another way to customize the way items are displayed ? Maybe I'm doing things in a totally wrong way ?
Thanks in advance !