API / Big Grid 4: How do I loop it for more than 2 posts?

Posted in: Newspaper
Post count: 322

An obvious way to do this is to simply use Big Grid 4 multiple times as needed and let infinite load handle the rest, but my concern is that doing so will result in far too many queries running something like a dozen loops on the initial load of the home page.

So my questions are:

  1. With big grid 4 loading 2 posts per instance, how insane would page load and server load be if I used that grid for 24+ posts on the home page?
  2. How would I go about either altering big grid 4 to display more than 2 posts per instance, or create a new big grid that uses grid styles, looks like big grid 4, and accepts a post count parameter?

I assume #2 can be done via the Theme API but the documentation isn’t clear on grids, only blocks and modules. I definitely want something that can be protected through updates without a child theme, but a couple of edits per update is fine too. This is still slightly experimental but big grid 4 with grid style #4 looks amazing and shows a lot of promise, so I’m willing to commit to a fair bit of work to make this happen. I need some advice on getting started though.

Thanks.

Post count: 1291

Hi,

A solution would be to create a new block which uses module mx5 used on Big Grid 4 – http://screencast.com/t/sKkpOyylx
Just check how the other blocks are built – http://screencast.com/t/ExHy1I5QEz
You need something like row > mx5 + mx5 > /row – http://screencast.com/t/iGlHrTgO9
And check the api documentation on blocks – https://forum.tagdiv.com/td_api_blockadd/
Module mx5 can be used on the new block so there’s no need for a new one.
And you may probably need some custom css.
Hope this helps.

Thank you!

Post count: 322

Thank you, Emil. That helps.

Viewing 3 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic.