Deon
Posts: 0
Joined: Sun Jun 30, 2013 6:00 am

Container background image from database

Hi

I am currently using css for my container backgrounds. This is very static.

I would like my container backgrounds to be dynamic by pulling the background image from the database. I do not see that it is possible to map from the database as there is no option to map the container.

Is there a way to achieve this?

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

Container background image from database

Hello Deon,

You are right, the is no such a feature in the Appery.io platform. Please use the custom JS code for that functionality. It has to have the same CSS selector as you use in your CSS code, like:

pre$("my-selector"). css("background", myImage);/pre

Here my-selector is the CSS selector you already use

myImage is the full link to your image from the database

Deon
Posts: 0
Joined: Sun Jun 30, 2013 6:00 am

Container background image from database

Perfect, thank you!

Return to “Issues”