Strange grid behaviour

Permalink
Hi,

I'm quite new to Concrete5, but I really LOVE it ;)

But I have some strange behaviour with layouts in 5.7.5.2:

I use the foundation grid framework. When trying to add a 3 column layout, it generates:

<div class="row">
<div class="columns medium-2"></div>
<div class="columns medium-1"></div>
<div class="columns medium-1"></div>
</div>

which seems wrong, shouldn't it be "medium-3" for every column? It also doesn't layout very well, of course.

This is independent from the grid framework I choose, the column class names seem wrong every time; it gets even worse for 4 or 5 column grids.

Additionally, I tried to use the "getThemeAreaLayoutPresets" method in my page theme, but my custom preset doesn't even show up anywhere.

Can someone explain to me what I'm doing wrong?

Thanks!

oimel
 
MrKDilkington replied on at Permalink Reply
MrKDilkington
Hi oimel,

Are you using a custom theme?

Have you read the documentation about this topic yet?
http://www.concrete5.org/documentation/developers/5.7/designing-for...
oimel replied on at Permalink Reply
oimel
I build my own theme nearly from scratch; i just copied some portions from the default theme that comes with the download zip. And of course I read the documentation before ;)

But I really cannot influence how the classes in the grid are named, or can/should I?
MrKDilkington replied on at Permalink Reply
MrKDilkington
A three column layout should create this HTML. Three columns spanning four grid units.
<div class="row">
    <div class="columns medium-4"></div>
    <div class="columns medium-4"></div>
    <div class="columns medium-4"></div>
</div>

Zip your theme page_theme.php and attach it with your reply so I can look at it.
oimel replied on at Permalink Reply 1 Attachment
oimel
Thnaks a lot.

I commented out quite everything already, so what could this do to interfere with the grid?
oimel replied on at Permalink Reply
oimel
Argh, your last posting gave me the right hint: I added a

$a->setAreaGridMaximumColumns(4)

As I wanted to restrict the maximum number of columns to 4.

But it seems this brings concrete5 to think the grid framework itself has only 4 columns at max and tries to arrange everything in these 4 columns.

This is quite confusing, it just works different from what I did expect (and I did not find any documentaion on this...)

solved ;)