Skip to main content

Menuplaceholder: placeholder menu items for Mezzanine

About

The menuplaceholder application allows users to add placeholders to the menu of a Mezzanine CMS website. Menu placeholders are “dummy” menu items, which can be used for organising submenus. Users can view them (and their children); unlike other types of menu items (such as those for rich text pages), users cannot click on placeholders to open them. Menu placeholders are provided to structure the hierarchy of pages on a site, but are not used to provide content.

The menuplaceholder app works with the following things:

  • Primary menus

  • Mobile menus

  • Dropdown menus

  • Footers

  • Breadcrumbs

Installation and usage

You can either go:

pip install menuplaceholder

Or download this source and go:

python setup.py install

Then add "menuplaceholder" to INSTALLED_APPS in the settings.py file for your Django installation, preferably at the beginning. Afterwards:

python manage.py makemigrations menuplaceholder
python manage.py migrate

Once this is done, adding a placeholder menu item (or ten) is trivial.

  • Go to the Mezzanine dashboard.

  • Under Content, click on Pages in order to “Select Page to change”.

  • Pick the part of the menu hierarchy you wish to add a menu placeholder, and click on “Add…”. The dropdown menu now have a new item: “Menu placeholder”. Select it.

  • Choose a Title and then click on Save.

Note: If you place "menuplaceholder" in INSTALLED_APPS after "mezzanine.pages", you will find your dummy menu items clickable (and thus not dummy menu items at all). That’s because the main magic of this app is rewriting the default Mezzanine menu templates, and if you put "mezzanine.pages" first, it “wins”. However, if you put "menuplaceholder" first, it should take priority.

Dependencies

The menuplaceholder app has been trialled with both Python 2.7 and 3.5. The other dependencies are:

  • Django (1 . x; has not been tested on 2. x)

  • Mezzanine (4 . x)

Versions

  • 0.1 (April 5th 2018) - Initial release. (Bug fix version 0.1.6 on April 8th.)

Metadata

Release files for menuplaceholder 0.1.6

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

Source distribution (sdist)

Source distribution for menuplaceholder 0.1.6
File Size Uploaded Provenance Actions
menuplaceholder-0.1.6.tar.gz 6.0 kB Without provenance Details for menuplaceholder-0.1.6.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for menuplaceholder 0.1.6
File Interpreter ABI Platform Actions
menuplaceholder-0.1.6-py3-none-any.whl Python 3 none any Details for menuplaceholder-0.1.6-py3-none-any.whl

Total release size: 15.0 kB

Security for menuplaceholder 0.1.6

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.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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