Skip to main content

A jQuery snippet that hide the "Sub-types" menu of p4a.subtyper when empty

Project description

Introduction

If you are using for any reason p4a.subtyper, your Plone site will show in every page a not very nice “Sub-types” menu, even if the menu is empty.

This “product” will remove it using a very little jQuery code.

You have available 2 different approach:

show invisible menu (default)

This will show the menu that a CSS given and installed with this product hide. So the Subtyper menu is always hidden, but Javascript restore it when needed.

In this way you will not see “blink” effect in the page.

hide visible menu

This seems simpler, just hide the menu when is empty, but this way in every page where the menu is empty, you’ll see it disappear.

To enable this way of handle the menu, just disable the hide_subtypes.css CSS in portal_css

TODO

  • An uninstall Generic setup step.

Changelog

0.1.0 (2009-12-11)

  • Initial release

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

redturtle.hide_subtypes-0.1.0.tar.gz (9.2 kB view details)

Uploaded Source

File details

Details for the file redturtle.hide_subtypes-0.1.0.tar.gz.

File metadata

File hashes

Hashes for redturtle.hide_subtypes-0.1.0.tar.gz
Algorithm Hash digest
SHA256 e112a59c7c767e4b1faa6080ead2348e37f5eacfa56ad5fd330962893b3a86ce
MD5 8945a24472c8e262de24cbd3909c604c
BLAKE2b-256 6e12abdf9d749a228c6a357a10c1cc294b89547c6235fffe2516fb30dc6184d0

See more details on using hashes here.

Supported by

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