Single page concept

Permalink
Hi,

I added a new single page like the documentation told me to. Its empty with only the header (where you can add blocks). What I want to do is:

-In Edit mode, being able to add any number of blocks on the page.
-Outside of edit mode, the content will be split every 10 blocks with a custom autopager on the top of the page like: 1 2 3 4 5
each sending to the same page but with different parameters.

This is easily doable without using concrete5 + a custom database.

Can someone point me in the right direction about how to do that with C5?

 
DavidMIRV replied on at Permalink Reply
DavidMIRV
I believe you would have to either use Javascript or render out the blocks manually doing whatever kind of paging that you wish to do .. You can start this by getting all the blocks in the area something like this
$area = Area::get($c,'Left Sidebar');
        $blocks = $area->getAreaBlocksArray($c);

from there you can determine the number you got and ->render them out as appropriated