Dynamic Row Backgrounds - Question | JoomShaper
Black Friday sale is live with flat 50% OFF. Sale ends soon! Grab your deal now!

Dynamic Row Backgrounds

Jamie Gilbert

Jamie Gilbert

SP Page Builder 2 years ago

Hi

I am wondering if there is a way to dynamically change the background image of a row, we have users who can upload pictures for an avatar and a background.

I have written some PHP which works well to display their avatar in a custom HTML module, and then add them to a SP Pagebuilder page, this works well.

However would like to also change the background, say within a ROW property dynamically to an image that the user uploads like I have done with the avatar, but don't see a way of dong this with PHP or anything else at this point.

Is there a way I can acheive this?

Thanks

Jamie

0
8 Answers
Pavel
Pavel
Accepted Answer
2 years ago #119436

Hi. Just an idea. Custom Module has the setting for background image. Isn't it easier to continue working with this than trying to use SPPB row?

0
Jamie Gilbert
Jamie Gilbert
Accepted Answer
2 years ago #119439

The reason why I said row, is because it's the background that would sit behind mutiple other components.

See the image on the below link, this is what I have built, the avatar is the blue car, and the "buttons" for the menu. I want the image that sits in the background to the choice of the user and not just the one I loaded. https://hsvownersclubofwa.com.au/images/homescreen-example.jpg

Make sense?

Cheers

Jamie

0
Paul Frankowski
Paul Frankowski
Accepted Answer
Senior Staff 2 years ago #119442

Hi Jamie, yes, make sense, but if SPPB doesn't have that feature - maybe you have to consider hiring a developer from your city/country for custom solution (addon or module).

0
Jamie Gilbert
Jamie Gilbert
Accepted Answer
2 years ago #119473

I have an unproven way to do this using Regular Labs Modules anywhere, it would basicly be a Custom HTML module which I would code some PHP to read and set the background, then use Regular Labs Modules anywhere to then "enbed" the SP-Pagebuilder module within that..

Think that sohuld work, but would be great if there is a better way using SP-Pagebuilder functionality itself.

I will try this if nothing better turns up.

0
Paul Frankowski
Paul Frankowski
Accepted Answer
Senior Staff 2 years ago #119476

But remember that RegularLabs is a good but quite heavy solution, that for sure will slow down your website which will be visible with middle and huge web traffic. This type of solution may be inefficient in the long run. What's different is a small dedicated solution. Of course, this is my private opinion. You will do as you wish.

Certainly, Pavel will agree with me.

0
Jamie Gilbert
Jamie Gilbert
Accepted Answer
2 years ago #119560

Hearing you, we are a non for profit club, everyone is a volunteer, and therefore unfortuantly no one gets paid! Even myself who does all the website related work.

We don't have money for something that is a nice to have.

Understand you are tyring to sell a service, it's ok, I will give the approach I came up with a go.

0
Paul Frankowski
Paul Frankowski
Accepted Answer
Senior Staff 2 years ago #119577

I am not trying to sell anything, we don't make code customizations for our members.


If you're small club - use only FREE and available solutions, and when you find sponsors one day, then invest a few dollars in that solution. That's all.

0
Jamie Gilbert
Jamie Gilbert
Accepted Answer
2 years ago #119581

Ok understood, I managed to get this done with a Custom HTML Module which used PHP to set the background, then used RegularLabs Modules Anywhere, to insert the SP-Pagebuilder over it.. works a treat.

As you say this was all FREE.

Thanks again

Cheers

Jamie

0