Hi,
Sorry if some of what I’m asking is a bit vague! And apologies if this is in the wrong place - I haven’t used the forums for a while.
No problem at all. We can always move the post to a more appropriate forum if needed.
I’ve got Splitter working well, but the only variable you can set seems to be the number of blocks, rather than the number of items per block.
In my case I need three entries per block, regardless of how many entries there are.
Well using the switch example I showed above will split the entries into blocks of 3 however it expects there to be 3,6,9,12… entries as it basically just places the information required before and after each block.
If I’m understanding the plugin correctly, you can only set the number of blocks, into which the entries would be evenly distributed.
I’m afraid I haven’t used that plugin much and so don’t know enough about it to be able to answer to it. You would need to contact the developer of that plugin to find out more as it’s a 3rd party plugin and so not something that we can support I’m afraid. I just put that out there as an example as it’s close to the kind of thing you’re looking for here.
I’m now thinking that I would need to make a calculation to work out how many blocks I would need for any given number of entries. So something like
{number of entries}/3={number of columns needed}
I would also need to round the number up!
If you need to go down this route then it would definitely require some custom coding or a custom add-on as you would be needing to utilise something like a modulo calculation to get what you need. I believe there is a 2.x plugin here - http://ellislab.com/forums/viewthread/132133/#721476 although again this couldn’t be supported as it’s a 3rd party offering. Might be a place to start with this though.
Other than that I can suggest that perhaps if you want me to we go ahead and move this thread over to the Community Help forums and perhaps someone in there can help out or has done this sort of thing before and can lend a hand.
Would you like me to do that for you?
Cheers,
Mark