Wrapping blocks

Permalink 7 users found helpful
I have an Area in my template that the client will always insert a 'Content' block.

Is is possible to have this wrapped in a <div> tag, so that each time a block is added so is another div?

johndorsay
 
Mnkras replied on at Permalink Best Answer Reply
Mnkras
yep here ya go ;)
<?php
$start = '<div id="middle-content" class="trans white shadow">';
$end = '</div>';
$d = new Area('Main');
$d->setBlockWrapperStart($start);
$d->setBlockWrapperEnd($end);
$d->display($c);
?>
ijessup replied on at Permalink Reply
ijessup
huh... never knew that. Marked as "Helpful"!

Thanks Mnkras for answer and johndorsay for question. :D
johndorsay replied on at Permalink Reply
johndorsay
That's great Mnkras.
I've gotta say this community is such a pleasure to be a part of.
JD
agedman replied on at Permalink Reply
agedman
Ditto that!