Support Offline : Mon - Fri / 10am - 6pm (GMT +6)

Your Time: Our Time:

SP Page builder module override doesnt work

Featured Lock Resolved Issue
Hello

I'm trying to do "SP Page builder Pro" "Module" addon override,
But it doesn't work. I'm using latest Travus template.

My goal is to make module addon to use module default title without need to use Title option in module addon because of translations.

So I went into: components > com_sppagebuilder > addons > module
and copied "module" folder so that is placed in this path:

templates > travus > sppagebuilder > addons > module

But when I edit site.php file, my edit doesn't show.
When I edit site.php in original location my edit show OK, so it seems that template doesn't use override file.

Any suggestion?
Latest Joomla and everything

Regards

5 Answers

Toufiq - Staff

More than a month ago #Permalink
Hi there,

Thanks for your query. Please check the screenshot & screencast video.

https://prnt.sc/op0h96

https://drive.google.com/file/d/1qUdg0EJlUbme_1O4JLBBnQJbZPG0iv1o/view

Note: Customization support is out of our range
https://www.joomshaper.com/support-policy

-Thanks

Hrvoje Znaor

More than a month ago #Permalink
Hello

Thanks for your input but I wasn't clear enough.
I asked how to create override for module addon from within sp page builder.
Please take a look attached photo.

Same issue like here: https://www.joomshaper.com/forums/how-to-create-addon-override-in-html-folder

I followed written how-to, but it's not working.

Is something changed in how sp page builder overrides work?

Thanks,
Regards

Attachments (1)

  • Screenshot_1.jpg
    Screenshot_1.jpg 27.8 KB

Toufiq - Staff

More than a month ago #Permalink
Hi there,

Thanks for your reply. Module addon is not generic addon like as Page Builder others addon. Module addon just loads the module. Nothing else. If you want to override like as addon then it's not possible.

-Thanks

Hrvoje Znaor

More than a month ago #Permalink
Hi

Sorry to bothering you, but just to confirm that you are saying that there is no way to module addon in this folder: components > com_sppagebuilder > addons ?

So other addons are possible to override but not module addon?
I wonder why only "module" addon doesn't allow usual way to override.

Also, your module addon should be able to display Joomla's module title because it's core feature. Adding this feature into your module addon output is so simple:


if($module->showtitle) {
$output .= $module->title;
}


And you can still wrap above code in module addon style output, so that it could work both ways: either to use joomla core module title or to add own title, something like this:


if($module->showtitle) {
$output .= '<'.$heading_selector.' class="sppb-addon-title">' . $module->title . '</'.$heading_selector.'>'
}else{
$output .= ($title) ? '<'.$heading_selector.' class="sppb-addon-title">' . $title . '</'.$heading_selector.'>' : '';
}


Hint: code above is not fully tested and it could be simplified even further.

I'm asking about this because most of my websites contains at least 4 languages and some even 10 languages, and Im using Falang to translate to avoid item duplication, like modules or SP Page Builder pages.

And Im sure that I'm not the only one who creates multilanguage websites

Btw. I'm now using Helix 3 template, because still I don't like how Helix Ultimate works.

Thanks,
Regards

Nick Kraakman

More than a month ago #Permalink
Hi Hrvoje,

Did you even figure this out?

As per the documentation, I copied the contents of the testimonial addon into templates/shaper_template/sppagebuilder/addons/testimonial, but the override is not working.

Any idea what the problem is?

Thanks!

EDIT
When I logged the $tmpl_file_path variable in administrator/components/com_sppagebuilder/builder/classes/base.php:61, I found out that, logically, SP Page Builder searches for overrides in the default template.

I was using a different template for the page I was building, and placed the overrides there initially, which is why they did not work.

Once I placed the overrides in the default template's folder, the override worked. Hope this helps someone out.


There are no replies made for this post yet.
Be one of the first to reply to this post!

Leaderboard (30 days)

Paul Frankowski

Paul Frankowski

Total Accepted Answers: 109
Toufiq

Toufiq

Total Accepted Answers: 61
Mehtaz Afsana Borsha

Mehtaz Afsana Borsha

Total Accepted Answers: 26
Ofi Khan

Ofi Khan

Total Accepted Answers: 11
Rashida Rahman

Rashida Rahman

Total Accepted Answers: 8

120

Templates

310430

Community Users

Newsletter

Don’t miss any updates of our new templates and extensions and all the astonishing offers we bring for you.
We never spam

Joomla! ® name is used under a limited license from Open Source Matters in the United States and other countries. JoomShaper.com is not affiliated with or endorsed by Open Source Matters or the Joomla! Project.

Connect Us