Skip to main content

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

Replaced

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.

{% load named_cms_menu_tags %}

<ul>
  {% show_named_menu "Main Menu" %}
</ul>

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

ui.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

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’,]

CMS_NAMED_MENUS_NAMESPACES = ['CMSMenu',]

or to allow all namespaces:

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.0.0.tar.gz (122.6 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.0.0-py3-none-any.whl (130.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: djangocms-named-menus-1.0.0.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.20.1 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.2

File hashes

Hashes for djangocms-named-menus-1.0.0.tar.gz
Algorithm Hash digest
SHA256 eb6274993f9ddf3d3ee76fea8080c9e7cad75484ef9472d29fcb1c9091f10679
MD5 c5b97453d0326320dfd0274a09c84fd5
BLAKE2b-256 35f32b7934149f5033e1f1abbe7ed2b7707252dae93997070aeab46616831e0e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: djangocms_named_menus-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 130.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.20.1 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.2

File hashes

Hashes for djangocms_named_menus-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 454903bbd28205f5ba02ef9dacd7ec03b7e38e95c86172c7b4294c9cd3d8e218
MD5 0367bbc4f87bcd996bc43e153633ce57
BLAKE2b-256 607eede7e5c21a7cf6d40eda0b1b9de74bdab37173c005a060a5d4bd141c5bea

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

1.2.0

2 files

1.1.1

2 files

1.1.0

2 files

1.0.1

2 files

This release

1.0.0 This release

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