Skip to content
Grav 2.0 is officially stable. Read the announcement →
General

Blueprint / .twig / .md for CSS background image

Started by Tim Guy 8 years ago · 1 replies · 1228 views
8 years ago

Hello
I would like to be able to select an image in the page admin, which then displays within a template div as a css background-image.

There is an incomplete solution here, which I've tried without success: /forum/archive/how-to-have-a-css-background-image-from-form-field-t8268

Can anyone please help with the correct blueprint, twig and md structure?
Many thanks
Tim

8 years ago

If anyone needs the answer, I finally found it here: /forum/general/css-image-loading-t118
Sorry for wasted reads and thanks to poster(s) of solution.
Tim

Suggested topics

Topic Participants Replies Views Activity
General · by jean-louis67, 3 weeks ago
2 308 3 weeks ago
General · by Andy Miller, 3 weeks ago
0 311 3 weeks ago
General · by Veehem, 4 weeks ago
0 263 4 weeks ago
General · by milkboy, 4 weeks ago
0 265 4 weeks ago
General · by ian russell, 1 month ago
2 335 1 month ago