Streaming live at 10am (PST)

Idea for Background image on CMS


#1

Its about this item:
http://help.webflow.com/article/how-to-use-dynamic-background-images

It would be great if:
When there is no BG image in placed in the CMS.
automaticly the original BG image will be showed.


#2

Webflow displays a placeholder in the Designer (the gray image) but nothing when published. Actually, the defaut background image could work already, by just setting a default bg image to the element, and adding the CMS bg property. in case of no bg image set for the post, the default would show up..

.. except it doesn't because Webflow adds an inline property which cancels any background:

element style{background-image:url('null')}

I don't know why this line of code is added... probably only to be sure the default WF icon isn't called. If it's the case they could maybe do that differently and remove that inline property.

@cyberdave that's an interesting thing to look at :wink:


#3

What you can do for now is stack two elements.

Make a div and give it the default background you want.

Nest another div inside, make it take all the room of the first one, and give it the CMS BG property.

Now in case your CMS element doesn't have a bg specified, it will show the bg of the element below it, the one you set for the default bg.


#4

Thanks Vincent, this will work for know!
Idea is still standing!


#5