use of enableGridContainer and layout tool

Permalink
Hi guys

I have been experimenting with the various ways to layout templates.

Hard coding templates is easy enough for me, but is there anything wrong
with simply doing this below and using the LAYOUT TOOL to get the columns needed?

Are there any issues with doing it this way that I should be aware of?

for example, does it produce unexpected output on larger pages or any odd quirks?


<?php
$a = new Area('cover');
$a->enableGridContainer();
$a->display($c);
$a = new Area('blurb');
$a->enableGridContainer();
$a->display($c);
$a = new Area('content');
$a->enableGridContainer();
$a->display($c);
?>


I have a few sites that I would like to develop using concrete5, so I really just want to be sure that I set things up the right way so that I don't run into a case of 'you should not have done it that way'!


low tech

lowtech
 
MrKDilkington replied on at Permalink Reply
MrKDilkington
Hi lowtech,

I think the layout tool works very well and with the new layout presets available, it is even more useful. I believe that layouts in page templates are still considered the primary choice for handling page layout. Especially when dealing with complex layouts.

'Layouts are a quick tool for chopping one block area into smaller block areas. We do not recommend you use them for site design or lots of pixel perfect design concerns. They're really a band-aid solution to the "Oh, I'd love to have a survey next to this paragraph of text" problem.'
https://www.concrete5.org/documentation/using-concrete5-7/in-page-ed...
lowtech replied on at Permalink Reply
lowtech
Hi

Thanks for the speedy reply

I get it that layout design is best done in templates, but I don't quite get the idea of "enableGridContainer" as using that seems to force me to use the layout tool to create the columns within it which is layout design, no?

And you seem to be saying that's not the best way.

I think i'm not grasping how enableGridContainer should be used. I can create my templates no problem, but not really sure about "enableGridContainer" as that just gives me one full width container.

low tech