Skip to main content

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

Metadata

Release files for djcms-custom-menu 1.0.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for djcms-custom-menu 1.0.5
File Size Uploaded Provenance
djcms-custom-menu-1.0.5.tar.gz 125.3 kB Without provenance Details

Release files / djcms-custom-menu-1.0.5.tar.gz

Download URL djcms-custom-menu-1.0.5.tar.gz
Size 125.3 kB
Tags Source
SHA-256 checksum
How to use checksums
8f5f3ff7c33cd3ab5f039b83149d04f788d4468ae885cbe32681c48252035c08
BLAKE2b-256 checksum
How to use checksums
108dcbad67ff15505eb96d6218c14a7872e7fd23ecc451bed5ef5066a341260c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.20.0 setuptools/41.0.1 requests-toolbelt/0.8.0 tqdm/4.32.2 CPython/3.6.8

Security for djcms-custom-menu 1.0.5

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

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