Skip to main content

Template overrides for DjangoCMS plugins when used with AngularJS

Project description

djangocms-angular-compendium
============================

A collection of templates to be used for overriding existing templates from various DjangoCMS
plugins, when running with the AngularJS framework.

Currently these templates are overridden:

* ``cmsplugin_filer_image/image.html``: Replace tag ``<img src="...">`` against ``<img ng-src="...">``.
This is required by the AngularJS [ngSrc](http://docs.angularjs.org/api/ng.directive:ngSrc)
directive.
* ``cms/plugins/bootstrap/carousel.html`` and ``carousel-slide.html``: Replace the Carousel HTML
code with a variant running with the [Angular UI Bootstrap](http://angular-ui.github.io/bootstrap/#/carousel)
library.

Installation and configuration
------------
From PyPI::

pip install djangocms-angular-compendium

In your project's settings, add ``angularjs_compendium`` to ``INSTALLED_APPS``. Check that this
entry is located before any DjangoCMS plugin entry::

INSTALLED_APPS = (
...
'angularjs_compendium',
...other DjangoCMS plugins
...
)

License
-------
Released under the terms of MIT License.

Copyright (C) 2013, Jacob Rief <jacob.rief@gmail.com>

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

djangocms-angular-compendium-0.1.0.tar.gz (3.8 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page