Change Projection 'Items to Display' based on device

Topics: Customizing Orchard, Writing modules
May 7, 2013 at 9:03 PM
I'm looking for ideas on how to best deal with a scenario where a responsive theme does everything perfect from a PC to a phone. The only thing that would change would be the number of items being rendered in a projection (fewer on a phone). I'm guessing the best would be to make a new module based on the Orchard.Projections module and add another field for 'Small Device Items to Display' and render that number of items for a phone.

May 7, 2013 at 11:06 PM
Or use media queries to hide items above a specific index.