Skip to content
● Grav 2.2 is out: 2x faster cold starts and 96% less memory on big sites. Read the announcement →

Blueprint / .twig / .md for CSS background image

Started by Tim Guy 8 years ago · 1 replies · 1299 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 Andy Miller, 7 days ago
0 117 7 days ago
General · by lynbor, 1 month ago
3 445 2 weeks ago
General · by lynbor, 3 weeks ago
7 564 2 weeks ago
General · by Harry, 2 weeks ago
0 164 2 weeks ago
General · by Old Man Umby, 1 month ago
2 310 4 weeks ago