Custom Template: Remove the div after element display.

jlee

Member
Every time i display an element, it is surrounded by a DIV.
This leads to a new line before and after the element.

Example: Now it is diplayed like this:
"My name is
Mike
and i come from....."

I want to be diaplayed like this:

"My name is Mike and i come from...."

How can i remove that div?
 
Well this is a solution but not the solution i like!

If i set float left and display inline i got this result:
Mike My name is and i come from...
Which means i have to do a lot of CSS changes.

So i still want to delete that div.
 
From the components/com_fabrik/models/element.php

I change the Line 2106
from: return '<div id="' . $htmlid . '">' . $this->_getROElement($data, $repeatCounter) . '</div>';
to return '<span id="' . $htmlid . '">' . $this->_getROElement($data, $repeatCounter) . '</span>';

Now i am testing to see what else it may affected...
 
Not a good idea to modify fabrik core files.
You can use the element's raw content (e.g. $element->element_raw)
 
We are in need of some funding.
More details.

Thank you.

Members online

No members online now.
Back
Top