Skip to main content

An extension for Django CMS that allows you to create and edit multiple menus like Wordpress. This is compatible for Python 3.6, Django 2.1.9, django-cms 3.6.0

Project description

Django CMS Custom Menu

An extension for Django CMS that allows you to create multiple menus like Wordpress. This is compatible for Python 3.6, Django 2.1.9, django-cms 3.6.0

Replaces Previous Versions

This replaces the previous versions by Ryan Bagwell and Rogerio Carrasqueira which are no longer actively updated

Originally forked from:

Installation

  1. Install with pip pip install djcms-custom-menu

  2. Add djcms_custom_menu to INSTALLED_APPS

  3. Run migrations python manage.py migrate

Usage

After installation, place the {% show_djcms_custom_menu 'YourMenuName' 0 100 100 100 "snippets/cms_named_menu.html" %} template tag where you want your menu to appear.

.. code::

{% load djcms_custom_menu_tags %}

    {% show_djcms_custom_menu 'Header Menu' 0 100 100 100 "snippets/cms_named_menu.html" %}

Next, create your menu in the admin area using the drag and drop interface.

Drag or add button click to add items as menu items:

.. image:: ui1.png

You can also add external website links as menu item.

Add button click to add external website link as menu items:

.. image:: ui2.png

Settings

The following settings can be changed by adding to your project's settings.py file:

  1. Override the default cache duration for DJCMS Custom Menu, default = 0 seconds

.. code::

DJCMS_CUSTOM_MENU_CACHE_DURATION = 3600

  1. Set the application namespaces that can be used with DJCMS Custom Menus as a list, default is CMS pages only - as the page id will not be unique for other applications e.g. Aldryn NewsBlog etc. default = ['CMSMenu',]

.. code::

DJCMS_CUSTOM_MENU_NAMESPACES = ['CMSMenu',]

or to allow all namespaces:

.. code::

DJCMS_CUSTOM_MENU_NAMESPACES = None

N.B.: Just feel free to contact for any query and help

Abdullah Al Arafat | imbipul9@gmail.com | +8801712192445

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

djcms-custom-menu-1.0.1.tar.gz (122.6 kB view details)

Uploaded Source

Built Distribution

djcms_custom_menu-1.0.1-py2.py3-none-any.whl (128.9 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file djcms-custom-menu-1.0.1.tar.gz.

File metadata

  • Download URL: djcms-custom-menu-1.0.1.tar.gz
  • Upload date:
  • Size: 122.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.8.0 tqdm/4.32.2 CPython/3.6.8

File hashes

Hashes for djcms-custom-menu-1.0.1.tar.gz
Algorithm Hash digest
SHA256 037337985ee0222428559ecdfeaefdbfa00f1981009c1fe17de20bd7b674fddc
MD5 d99d557fa41a7c96d224dd0583e5ff34
BLAKE2b-256 45c1ead517c2401bfe813bee5777d1b779a3cfa4ffd1df84631dcd8d9476842b

See more details on using hashes here.

File details

Details for the file djcms_custom_menu-1.0.1-py2.py3-none-any.whl.

File metadata

  • Download URL: djcms_custom_menu-1.0.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 128.9 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.8.0 tqdm/4.32.2 CPython/3.6.8

File hashes

Hashes for djcms_custom_menu-1.0.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 e8bf3f38062dc7502a8b34b5682a977c4265566ee864a685306039006ea1f7dd
MD5 8d35fad50c1d555e695f93034d2ca915
BLAKE2b-256 95091968da2bf6b1cf635967d8df6cd80655561c4397282ec1daf3cd3a24e59e

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