djangocms-background-media
This is a simple django-cms plugin that provides responsive, full screen background media with text.
A HTML div container is added to the page that can either have a background image or video. Video backgrounds are enabled by making use of the Vide jQuery plugin. Child plugins are enabled, so text and/or hyperlinks etc can be placed on top of the background media, see usage below for more details.
Installation
To install:
pip install djangocms-background-media
Then add djangocms-background-media to your installed apps:
INSTALLED_APPS = [
...
'djangocms_background_media',
...
]
If you’re not already using django-filer and easy-thumbnails then these too will need to be added to your installed apps:
INSTALLED_APPS = [
...
'easy_thumbnails',
'filer',
...
]
And run the migrations:
./manage.py migrate
The package assume that jQuery has been added to the site already. So if you’re not using, please add to you templates/base.html:
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
Usage
The background media plugin is added to a page and configured accordingly. If a background image is all that is required, then an image is uploaded, the container height can be updated, and optional overlay added and that’s all. If a video background is required then a video is uploaded and a video poster should be provided, as this is what will be displayed for mobile browsers. You’re also able to pass a JSON config object if you wish. More details of the video plugin can be viewed on Vide.
I have provided the ability to link an optional style sheet to the page, so that the plugin will work “out of the box”, if you don’t link the style sheet you will need to provide your own styling.
To add text, links or another plugin to the background media plugin, simply add the child plugins you desire.
Metadata
Release files for djangocms-background-media 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| djangocms-background-media-1.0.0.tar.gz | 401.8 kB | Without provenance | Details for djangocms-background-media-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| djangocms_background_media-1.0.0-py2-none-any.whl | Python 2 | none | any | Details for djangocms_background_media-1.0.0-py2-none-any.whl |
Total release size: 817.8 kB
Release files / djangocms-background-media-1.0.0.tar.gz
| Download URL | djangocms-background-media-1.0.0.tar.gz |
|---|---|
| Size | 401.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1e1125a92221573dffcd01e612ed2d95e910fa124618c09c62c5f5feb599822e
|
|
BLAKE2b-256 checksum How to use checksums |
7631597029d9cdf0ecc046c7116e57a53089e32102b99abaf49d8a86e7a9c929
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / djangocms_background_media-1.0.0-py2-none-any.whl
| Download URL | djangocms_background_media-1.0.0-py2-none-any.whl |
|---|---|
| Size | 416.0 kB |
| Tags | Python 2 |
|
SHA-256 checksum How to use checksums |
59f463b33faf33ead1383cc3f855f2dcf374c166b66bf79f5048089c26d2e4c4
|
|
BLAKE2b-256 checksum How to use checksums |
821dca2179202725954d7838744ada290fabb16deae0d482282f1ce7195bc75b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for djangocms-background-media 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.