Skip to content
Grav 2.1 is out: every page speaks Markdown. Read the announcement →

Blueprint / .twig / .md for CSS background image

Started by Tim Guy 8 years ago · 1 replies · 1263 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 jeremycherfas, 1 week ago
4 182 2 days ago
General · by lynbor, 6 days ago
2 124 3 days ago
General · by Old Man Umby, 1 week ago
1 100 1 week ago
General · by Sebastian, 2 weeks ago
1 124 2 weeks ago
General · by Andy Miller, 3 weeks ago
0 248 3 weeks ago