Creating New Blocks ("adding" instead of "adding to")
Permalink
I have created my own template with 3 horizontal boxes (or divs) across the page. Each block has a border that holds content. It works great except for the fact that I would like to add a new instance of block below. It seems that I can only "add to" the existing block. I would like another instance of the same block with its own border so that I've got 2 blocks stacked on top of each other.
I don't want to have to create a new div and edit the template each time I want to create a new block. Is this possible? (see screenshot for what I would like to do athttp://i56.tinypic.com/30ruyx4.jpg...
I don't want to have to create a new div and edit the template each time I want to create a new block. Is this possible? (see screenshot for what I would like to do athttp://i56.tinypic.com/30ruyx4.jpg...
Suppose I am confusing "blocks" with "areas," - I developed this theme myself and created the 3 divs which house the content. Remember, my goal is not to have to create a new "area" aka div each time I want a new box.
How would I go about using the concrete5 CMS to stack up the blocks, as seen in my screenshot?
How would I go about using the concrete5 CMS to stack up the blocks, as seen in my screenshot?
$a = new Area('Main'); $a->setBlockWrapperStart('<div class="border">'); $a->setBlockWrapperEnd('</div>'); $a->display($c);
Something like that?
Yes! Exactly what I was looking to do. Thank you!!
Now I just need more spacing between these areas. Do I need to create a new css class for that?
Now I just need more spacing between these areas. Do I need to create a new css class for that?
that or add padding to the bottom of the same class
Worked perfect.
Thank you both for your help. Cheers.
Thank you both for your help. Cheers.
> How would I go about using the concrete5 CMS to
> stack up the blocks, as seen in my screenshot?
If each column is a separate area, just add blocks to the columns. Style via CSS to get the layout right. I don't know if I answered your question or not. I might not be understanding what you're asking.
-Steve
> stack up the blocks, as seen in my screenshot?
If each column is a separate area, just add blocks to the columns. Style via CSS to get the layout right. I don't know if I answered your question or not. I might not be understanding what you're asking.
-Steve
http://www.concrete5.org/documentation/general-topics/blocks-and-ar...
-Steve