I am currently setting up a page with many products, many of them on just one page.
This results in a rather long block of content.
It would be cool to create a folder with blocks, which will be displayed on the page in a row (A littlebit like the gal tag).
e.g. {{blockloop:foldername}}}
That would be much easier to handle a lot of content.
I’ve done this before with things like testimonials where I want to show all of the blocks on a single page. In fact I may have shared this code before!
<?php
/* Get all of the testimonials in the testimonials directory */
function getAllTestimonials(){
$dir = 'content/blocks/testimonials/';
$files = glob($dir . '/*.txt');
for ($i=0; $i < count($files); $i++){
echo('<div class="quote">');
include($files[$i]);
echo('</div>');
}
}
?>
You can then call the function where you want the testimonials to appear in the page;
Obviously this just dumps all of the blocks in the page in the order it finds them so you may want to consider sorting them, filtering some of them (maybe blocks that are still being worked on) and paging between groups of them so you don’t end up with 1000 blocks on a very long page.