Integrate Component View Better Into Template - Question | JoomShaper

Integrate Component View Better Into Template

RB

Ralf Besl

SP Page Builder 11 months ago

We are using the SPPagebuilder together with the Helix Ultimate template. We have our own developed component with default.php's in the components tmpl directory.

Currently the HTML is build for those like here:

However we would like to have the component be able to go the whole width of the page and not already be in the .container element. Can we achieve that with code in the component?

Or maybe is it possible to create one page in sppagebuilder and set it to use as the template for component views while being able to set some contents programmatically?

0
3 Answers
Paul Frankowski
Paul Frankowski
Accepted Answer
Senior Staff 11 months ago #175928

Hi Ralf,

you don't have to touch HTML/PHP code, just override style by using a Custom CSS to neutralize the container on the selected subpages where your custom component is used.

EXAMPLE

.com_catalog #sp-main-body > .container { max-width: 100%; }

Knowing the class name you can play now, and my role ends here ;]

0
RB
Ralf Besl
Accepted Answer
11 months ago #175930

Right, I figured.

But is there a way to set a specific page builder page for a components view?

0
Paul Frankowski
Paul Frankowski
Accepted Answer
Senior Staff 11 months ago #175931

Yes, becuase each page has unique class name, check it in <body class=" ...... "

or you can create a class name (with CSS) that you will add in Menu items settings.

Just use Joomla Native Features. Compare to WordPress you have many built-in features here.

0