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 hashes)

Uploaded Source

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