skip to navigation
skip to content

djangocms-local-navigation 1.4.1

Display menus based on the HTML structure of the pages

# djangocms-local-navigation

This package provides a DjangoCMS plugin that displays a menu based on the
structure of the current page. You can for example create a local menu that is
based on all the h2 elements on your page.

## Installation

`$ pip install djangocms-local-navigation`

Then add it to INSTALLED_APPS:

# ...

Also add the plugin processor, which will add the `id` attributes to your
navigation elements, allowing you to actually linking to them:

# ...

You should now be able to add the plugin "Local menu" to your pages.

## Configuration


Default: `h2`

Defines which elements are used to create the local menu. This is a CSS
selector so if you want for example only elements with the class
`local-navigation-heading` to be included in the navigation you could use


Default: `None` (means automatic detection)

Defines which XML parser is used to add anchors to the elements and create the
menu. Refer to [the BeautifulSoup documentation](
for more information. Be advised that [lxml has known issues with
and can cause your processes to hang.

## Development

To run the tests, use `./ test`.
File Type Py Version Uploaded on Size
djangocms-local-navigation-1.4.1.tar.gz (md5) Source 2017-08-28 4KB
djangocms_local_navigation-1.4.1-py2-none-any.whl (md5) Python Wheel 2.7 2017-08-28 7KB