default-group.php customization

JennaMar

Member
Hi there,
i could need a helping hand to get a customization of the default-group.php
My form needs css-design and often elements where added, removed or hidden.
With the containerClass div row-fluid it's tricky using nth-of-type will only work as long as nothing changes.
So i would like to add the element name to the containerClass, or something like class_1, class_2

And now the problem: Me!
I don't know how to do it with php, and if i am at the wright place working.

Isn't it here where to customize the class:
$displayData = array(
'class' => $element->containerClass, (here something like .= 'class_+1')
'style' => $style,
'span' => $span
);

Would help if someone can give me a link to a good page explaining php.

Many Thanks
JennaMar
 
The element name should already be part of the main fabrikElementContainer div classes, prefixed by fb_el_.

-- hugh
 
Hi Hugh,
well, it's the div .row-fluid which contains the .fb_el_causing me trouble. Thought containerClass gives the class .row-fluid Would be awesome, if i could have a extra class for it.
Am i looking at the right place?
thanks
 
Last edited:
Not sure what you mean.
It doesn't make sense to add something element related to row-fluid, it can contain multiple elements.
You can address the div.row-fluid for CSS with
.fabrikGroup div.row-fluid
or
#groupX div.row-fluid (X is your group id)

Use a browser dev tool to check what you need.
 
Yeah,
#group4 div.row-fluid:nth-of-type(3) {
width: 72%;
float: right;
}
#group4 div.row-fluid:nth-of-type(4) {
float: left;
clear: both;
width: 48%;
}
#group4 div.row-fluid:nth-of-type(5) {
float: right;
width: 48%;
}
#group4 div.row-fluid:nth-of-type(6) {
float: left;
clear: both;
width: 48%;
}
#group4 div.row-fluid:nth-of-type(7) {
float: right;
width: 48%;
}
#group4 div.row-fluid:nth-of-type(8) {
float: none;
clear: both;
width: 100%;
}
could you imagine that it makes sense for me?
i have some more groups and regular changes
 
yup email notification has stopped working for me, too.
You can create a custom template without group and row-fluid stuff

gesendet mit Tapatalk
 
need the group, but getting rid of row-fluid would be fine.
so am i at the right place in the default-group php?
 
need the group, but getting rid of row-fluid would be fine.
so am i at the right place in the default-group php?

Not if you are trying to modify the grid container with the row-fluid, no. That's in a layout (./layouts/grid/fabrik-grid-start.php in the main fabrik component folder), so we can override it for different versions of bootstrap.

So you could try overriding that (see the wiki for layout override how to), but ... this is a responsive template, so trying to force it to be unresponsive may not be easy.

-- hugh
 
I've (hopefully) switched over to sendgrid from mandrill for notifications. Let me know if you still aren't getting them.

-- hugh
 
Hi hugh,
thanks for your answer, and no notification.
will try to add something, instead of deleting existing class.
 
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top