faithcatholic/custom_design

允许用户调整自定义设计元素。

安装: 563

依赖项: 0

建议者: 0

安全: 0

星标: 0

关注者: 4

分支: 1

开放问题: 0

类型:drupal-module

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

This package is auto-updated.

Last update: 2024-09-20 13:01:44 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.