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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file redturtle.hide_subtypes-0.1.0.tar.gz
.
File metadata
- Download URL: redturtle.hide_subtypes-0.1.0.tar.gz
- Upload date:
- Size: 9.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e112a59c7c767e4b1faa6080ead2348e37f5eacfa56ad5fd330962893b3a86ce |
|
MD5 | 8945a24472c8e262de24cbd3909c604c |
|
BLAKE2b-256 | 6e12abdf9d749a228c6a357a10c1cc294b89547c6235fffe2516fb30dc6184d0 |