This module is not active anymore. Most functionality is included in Fork CMS by default now. You can go to a page and go to the Image tab and upload a page image there and use it in your theme layout.
The Fork CMS Backgrounds module let's you add backgrounds to your Fork CMS site. Upload a background, set the css options (background-size: cover, background-repeat, background-position, ...). For every background, a new widget is generated that you can insert anywhere on your Fork CMS site.
I use this module to insert a background inside a header block. An example can be seen here in the header.
Backend:
Frontend example with additional css:
You can see a live example here in the header.
- Upload the
/src/Backend/Modules/Backgrounds
folder to your/src/Backend/Modules
folder and your/src/Frontend/Modules/Backgrounds
folder to/src/Frontend/Modules
folder. - Browse to your Fork CMS backend site.
- Go to
Settings > Modules
. Click on the install button next to the backgrounds module. - Have fun!
The widget generates a div. To set the div as a background, I used some css. Here's a quick codepen example to do this for a page header.
If you encounter any bugs, please create an issue and I'll try to fix it (or feel free to fix it yourself with a pull-request).
- Twitter: @jessedobbelaere
- E-mail: jesse@dobbelaere-ae.be for any questions or remarks.