Skip to main content

Templates and templatetags to be used with django-CMS with Bootstrap3 or Bootstrap4.

Project description

djangocms-bootstrap

Some templates and templatetags to be used with django-CMS and Bootstrap3/Bootstrap4.

Django-CMS is frontend agnostic, which is a good thing. However, in combination with Bootstrap3/4 the menu structure does not quite fit. This is because Bootstrap3/4 only allows one nested menu level.

Therefore djangocms-bootstrap adds a few modified templatetags, which render the existing page tree into a menu structure suitable for the navbar in Bootstrap3/4.

PyPI PyPI version PyPI Twitter Follow

CHANGELOG

  • 1.0.2

    • Add AngularJS directive for toggling navbar in responsive mode.
  • 1.0.1

    • Fix navbar and menu templates if used in combination with Bootstrap-4 and jQuery.
  • 1.0

    • In addition to Bootstrap-3 add support for Bootstrap-4. This requires to be more generic, therefore also
    • rename project from djangocms-bootstrap3 to djangocms-bootstrap in your requirements.
    • rename Django app from cms_bootstrap3 to cms_bootstrap in your INSTALLED_APPS.
    • rename in existing templates bootstrap/… to bootstrap3/….
  • 0.4.2

    • adopted navbar to work with angular-ui-bootstrap version 2.5 and later.
  • 0.4.1

    • Fix versions in install_requires of setup.py.
  • 0.4

    • Add support for django-CMS version 3.5
    • Replace dropdown, dropdown-toggle by uib-dropdown, uib-dropdown-toggle to be compatible with angular-ui-bootstrap version 0.14 and later.
    • In hamburger menu, replace <button>- by <a>-tag, because ng-click didn't fire properly.
    • Make use of uib-collapse for mobile menus. This adds an animation.
  • 0.3.2

    • In Navbar, render get_menu_title as safe string in order to allow HTML tags in Mune Title.
  • 0.3.1

    • Fix: Use uib-dropdown rather than dropdown to be compatible with angular-ui-bootstrap version 0.14 and later.
  • 0.3.0

    • The templatetags main_menu, main_menu_below_id and main_menu_embody_id now accept two optional values: offset (default 0) and limit (default 100). With these it is possible, to render only a subset of the menu list.
  • 0.2.1

    • Add setup.py to MANIFEST.in
  • 0.2.0

    • Adopted to Angular-UI-bootstrap version 0.14 and later.
    • Fixed division issue in paginator for Python3.
  • 0.1.0

    • Added templatetag main_menu_embody_id.
    • Fixed various Django templates to render the menu.
  • 0.0.2 Initial release.

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-bootstrap-1.0.2.tar.gz (8.5 kB view details)

Uploaded Source

File details

Details for the file djangocms-bootstrap-1.0.2.tar.gz.

File metadata

  • Download URL: djangocms-bootstrap-1.0.2.tar.gz
  • Upload date:
  • Size: 8.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.4.1 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/3.6.6

File hashes

Hashes for djangocms-bootstrap-1.0.2.tar.gz
Algorithm Hash digest
SHA256 dac78892eedfd38f43d57449cd454172f5a36d94c80244c570b403d687f4b0ab
MD5 64419d472e801ff6b0faabc7e475bf2e
BLAKE2b-256 dbe8858120644ffdf936f8b3f1bd17ae7e426d804bc83630e4274cfee885a7a4

See more details on using hashes here.

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