Integrate component view better into template - Forum | JoomShaper
Staff replied SP Page Builder

Integrate component view better into template

Asked by Ralf Besl 1 year ago Last activity 1 year 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?

2 replies

Paul Frankowski Senior Staff
1 year ago · edited

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 ;]

Ralf Besl Asked this

Right, I figured.

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

Paul Frankowski Senior Staff

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.

Log in to reply.