You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

djcms-custom-menu

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

djcms-custom-menu

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

1.0.5
pipPyPI
Maintainers
1

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:

  • https://github.com/rgcarrasqueira/django-cms-named-menus
  • https://github.com/ryanbagwell/django-cms-named-menus
  • https://github.com/mcldev/djangocms-named-menus

Installation

  • Install with pip pip install djcms-custom-menu

  • Add djcms_custom_menu to INSTALLED_APPS

  • 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:

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

.. code::

DJCMS_CUSTOM_MENU_CACHE_DURATION = 3600

  • 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

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.