faithcatholic/custom_design

Allows users to tweak custom design elements.

Installs: 578

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 4

Forks: 1

Open Issues: 0

Type:drupal-module

v3.1.2 2024-06-20 12:14 UTC

This package is auto-updated.

Last update: 2024-12-20 13:39:41 UTC


README

---SUMMARY---

Module aims to let users define some design elements such as banner background
images, videos, etc.

---INSTALLATION---

Install as usual at /admin/extend. Grant the relevant permissions to the desired
roles at /admin/user/permissions.

---CUSTOM BACKGROUND IMAGES---

1. Make sure the "edit custom banners" has been added to the desired role(s).

2. Upload a background image or video using the settings form at /admin/appearance/custom-design.

3. Use the {{ custom_bg_url }} variable in html.html.twig or page.html.twig to
outpute an image or video url.

4. Wrap the url in an HTML element or inline style to display the output. A {{ custom_bg_type }}
variable is included for any necessary if-then-else conditionals, etc. (For example, a video
background can be included by including a <video> tag.)

5. Futher formatting—background videos, for example—can be provided using additional css.