Skip to main content

Django CMS Named Menus

An extension for Django CMS that allows you to create multiple menus like Wordpress

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 djangocms-named-menus

  2. Add cms_named_menus to INSTALLED_APPS

  3. Run migrations python manage.py migrate

Upgrading from Previous Version

  1. Uninstall previous version with pip pip uninstall -y django-cms-named-menus

  2. The migrations and code will pick up previous versions correctly.

Usage

After installation, place the {% show_named_menu 'MenuName' %} template tag where you want your menu to appear.

.. code::

{% load named_cms_menu_tags %}

    {% show_named_menu "Main Menu" %}

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

Drag items with child menu items:

.. image:: ui.png

Drag items without child 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 Named Menus, default = 3600 seconds

.. code::

CMS_NAMED_MENUS_CACHE_DURATION = 3600

  1. Set the application namespaces that can be used with Named 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::

CMS_NAMED_MENUS_NAMESPACES = ['CMSMenu',]

or to allow all namespaces:

.. code::

CMS_NAMED_MENUS_NAMESPACES = None

Download files

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

Source Distribution

djangocms-named-menus-1.2.0.tar.gz (123.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

djangocms_named_menus-1.2.0-py3-none-any.whl (132.5 kB view details)

Uploaded Python 3

File details

Details for the file djangocms-named-menus-1.2.0.tar.gz.

File metadata

  • Download URL: djangocms-named-menus-1.2.0.tar.gz
  • Upload date:
  • Size: 123.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.2

File hashes

Hashes for djangocms-named-menus-1.2.0.tar.gz
Algorithm Hash digest
SHA256 d575d7a159c7e2bea96b8d8ad1b37bc147828da6c2716649b0cb541be4599a44
MD5 ddd4ead5c452b6191705a4e0cabef0f5
BLAKE2b-256 52b200eec46819e92fffa54905a795f5b3afc1d5e080aa96114c68df029fb00e

See more details on using hashes here.

File details

Details for the file djangocms_named_menus-1.2.0-py3-none-any.whl.

File metadata

  • Download URL: djangocms_named_menus-1.2.0-py3-none-any.whl
  • Upload date:
  • Size: 132.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.2

File hashes

Hashes for djangocms_named_menus-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1ba31c185639c2ef39e9b7edbfeac15ec04bb4d8d45869f091c6a80774234591
MD5 0832970e157d932a355c19397df05f1e
BLAKE2b-256 41de56efad299738999446cb4793b13ed3c1ddd41cfe42a161d11967e66e0569

See more details on using hashes here.

Release history Release notifications | RSS feed

3.0.1

2 files

3.0.0

2 files

2.0.2

2 files

2.0.1

2 files

2.0.0

2 files

1.3.0

2 files

1.2.1

2 files

This release

1.2.0 This release

2 files

1.1.1

2 files

1.1.0

2 files

1.0.1

2 files

1.0.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page