
Security News
Open Source CAI Framework Handles Pen Testing Tasks up to 3,600× Faster Than Humans
CAI is a new open source AI framework that automates penetration testing tasks like scanning and exploitation up to 3,600× faster than humans.
djangocms-owl is a reuseable plugin for django-cms
_ that
implements the JavaScript carousel library Owl Carousel
_. Version 1 of
Owl Carousel is supported.
Install Djangocms-owl from Pypi.
.. code:: python
pip install djangocms-owl
Add Djangocms_owl to INSTALLED_APPS
.. code:: python
INSTALLED_APPS = (
...
'djangocms_owl',
...
)
Owl Carousel has a dependency on JQuery Docs
_ that is not
currently included within this package. Add a copy will need adding to a
template such as the base.html.
.. code:: html
<script src="jquery.min.js"></script>
CSS classes can be added to the plugin via a select box by using the DJANGOCMS_OWL_STYLES settings tuple.
.. code:: python
DJANGOCMS_OWL_STYLES = (
('style1', 'Style 1'),
('style2', 'Style 2'),
)
djangocms_owl/default.html is rendered by default. The user can select custom templates if the following tuple is set as the example below demonstrates.
.. code:: python
DJANGOCMS_OWL_TEMPLATES = (
('template1', 'Template 1'),
('template2', 'Template 2'),
)
Restrict the plugins available to Owl Carousel
.. code:: python
DJANGOCMS_OWL_CHILD_CLASSES = (
'PicturePlugin',
)
Include or exclude static files
.. code:: python
DJANGOCMS_OWL_INCLUDE_CSS = True
DJANGOCMS_OWL_INCLUDE_JS_OWL = True
DJANGOCMS_OWL_INCLUDE_JS_JQUERY = True
Set the CMS module name in the available plugin list. The default is Generic.
.. code:: python
DJANGOCMS_OWL_MODULE = _('Generic')
base.html includes all the JavaScript and CSS needed to run the carousel, but it does not render the HTML. Custom templates can extend base.html as long as they define a plugin block containing the html and plugin render code as show in the below example.
.. code:: html
{% extends 'djangocms_owl/base.html' %}
{% load cms_tags %}
{% block plugin %}
<div class="owl-carousel-plugin plugin{% if style %} {{ style }}{% endif %}" id="plugin-{{ instance.pk }}">
<div class="row">
<div class="small-12 columns">
<div class="slider">
{% for plugin in instance.child_plugin_instances %}
<div class="item">
{% render_plugin plugin %}
</div>
{% endfor %}
</div>
</div>
</div>
</div>
{% endblock plugin %}
cmsplugin-filer
_0.1.10 / 0.1.11 BUG Fixes (2016-10-24)
0.1.9 (2016-10-24)
0.1.8 (2016-04-08)
0.1.7 (2015-08-06)
0.1.6 (2015-08-05)
0.1.5 (2015-07-22)
0.1.4 (2015-07-17)
0.1.3 (2015-07-06)
0.1.2 (2015-07-06)
0.1.1 (2015-07-05)
0.1.0 (2015-07-03)
.. _django-cms: https://github.com/divio/django-cms .. _Owl Carousel: http://owlgraphic.com/owlcarousel/ .. _Docs: http://owlcarousel.owlgraphic.com/docs/started-installation.html .. _cmsplugin-filer: https://github.com/stefanfoulis/cmsplugin-filer
FAQs
Djangocms plugin for owl carousel v1
We found that djangocms-owl demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
CAI is a new open source AI framework that automates penetration testing tasks like scanning and exploitation up to 3,600× faster than humans.
Security News
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.
Security News
CVEForecast.org uses machine learning to project a record-breaking surge in vulnerability disclosures in 2025.