I'm using the UniPager web part to show paging. I'd like to display 8 items per page if the viewport is greater than 1199 pixels, else display 6 items.
Is there a macro that detects the viewport width? If not, anyone have an idea how to accomplish this?
{% if (somemacro> 1199) { return 8 } else { return 6 } %}
I don't believe there is. You could use the examples in this post and create your own macro.
Check for this http://devnet.kentico.com/docs/7_0/devguide/index.html?mobile_device_macro_reference.htm
Thanks Chetan, but it doesn't look like any of these are for the viewport. ScreenPixelsWidth will give me the width of the device, but not the browser window.
Please, sign in to be able to submit a new answer.