Skip to content
● Meet Grav Guard: keep every Grav site you run secure and up to date, all from one place. Free for up to 3 sites. Read more →

Blueprint / .twig / .md for CSS background image

Started by Tim Guy 8 years ago · 1 replies · 1380 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 themetman, 23 hours ago
2 40 16 hours ago
General · by Hanns Mattes, 1 week ago
0 121 1 week ago
General · by Karmalakas, 1 week ago
2 185 1 week ago
General · by Hanns Mattes, 3 weeks ago
0 235 3 weeks ago
General · by Dima, 4 weeks ago
1 211 4 weeks ago