This project is read-only.

Change Projection 'Items to Display' based on device

Topics: Customizing Orchard, Writing modules
May 7, 2013 at 10: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 8, 2013 at 12:06 AM
Or use media queries to hide items above a specific index.