jessedobbelaere / fork-cms-module-backgrounds

Backgrounds module for Fork CMS (www.fork-cms.com). Add a background to insert into a page or header, with some configurable css options.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

README

Archived

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.

Description

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.

Preview

Backend:

Image Image

Frontend example with additional css:

Image

You can see a live example here in the header.

Installation

  1. 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.
  2. Browse to your Fork CMS backend site.
  3. Go to Settings > Modules. Click on the install button next to the backgrounds module.
  4. Have fun!

HTML & CSS

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.

Bugs

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).

Discussion

About

Backgrounds module for Fork CMS (www.fork-cms.com). Add a background to insert into a page or header, with some configurable css options.

License:Do What The F*ck You Want To Public License


Languages

Language:PHP 75.4%Language:Smarty 23.5%Language:JavaScript 1.1%