Skip to main content

Add a configurable navigation to your Kotti site

Project description

This is an extension to the Kotti CMS that renders a navigation in the left or right slot.

Find out more about Kotti

Setting up the navigation widget

To set up the navigation widget to display on every page in Kotti on the left side add kotti_navigation.kotti_configure to the kotti.configurators setting in your ini file:

kotti.configurators = kotti_navigation.kotti_configure

To set up the navigation widget on the right side you have to use the pyramid.includes option in your ini file:

pyramid.includes =
    ...
    kotti_navigation.include_navigation_widget_right

To exclude the root of the site from the navigation, set the kotti_navigation.navigation_widget.include_root variable.:

kotti.configurators = kotti_navigation.kotti_configure
kotti_navigation.navigation_widget.include_root = false

To open the whole navigation all the time, set the kotti_navigation.navigation_widget.open_all variable. This is useful if you plan to set up a popup menu via css or javascript:

kotti.configurators = kotti_navigation.kotti_configure
kotti_navigation.navigation_widget.open_all = false

You can exclude specific content types from the whole navigation structure. If you not want to show images in the navigation at all, set the kotti_navigation.navigation_widget.exclude_content_types variable to the following.:

kotti_navigation.navigation_widget.exclude_content_types =
    kotti.resources.Image

Thanks

Thanks to the following people for support, code, patches etc:

  • Andreas Kaiser (disko)

Changelog

0.3a1 (2012-12-04)

  • Changes for compatibility with Kotti>=0.8. These changes are not backward compatibel. If you want to use kotti_navigation with Kotti<=0.7.x then pin kotti_navigation to 0.2. * Use new children_with_permission function on context.

  • Use view_config decoration for views.

0.2 (2012-08-15)

  • Use assign_slot for slots instead of depricated register slot. [j23d]

0.2a3 (2012-07-02)

  • Move border from bottom to top for submenu. [j23d]

0.2a2 (2012-06-18)

  • Fix structure of navigation list. [j23d]

0.2a1 (2012-06-16)

  • Move to fanstatic for static resource inclusion. [disko]

  • Added option to exclude content types from the navigation. [j23d]

0.1

  • Initial release [j23d]

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

kotti_navigation-0.3a1.zip (13.7 kB view details)

Uploaded Source

File details

Details for the file kotti_navigation-0.3a1.zip.

File metadata

  • Download URL: kotti_navigation-0.3a1.zip
  • Upload date:
  • Size: 13.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for kotti_navigation-0.3a1.zip
Algorithm Hash digest
SHA256 86d5c34ff1c612b0b527351d2029c0460cedbcfa42bbc7f489298d702e5b6599
MD5 690a5329f916edcf00aa4dfb61b672d0
BLAKE2b-256 834350b17120f6e4ee041b047ccf88d168d7b22a63fab0fdda6c7b67d01775d2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page