ShowHide Macro
![]() | Wiki macros implementation for simple show/hide of a content with some animations. |
Type | XAR |
Category | |
Developed by | |
Active Installs | 353 |
Rating | |
License | GNU Lesser General Public License 2.1 |
Table of contents
Description
Wiki macros implementation for simple show/hide of a content with some animations.
Version 2.x is HTML compatible with the old version, so that existing project could continue styling with the same kind of CSS rules. However, it is now based on jQuery, and need requireJS, so it requires XWiki 5.x or more.
The package includes demos of the macros and you can find screenshots below:
Prerequisites & Installation Instructions
We recommend using the Extension Manager to install this extension (Make sure that the text "Installable with the Extension Manager" is displayed at the top right location on this page to know if this extension can be installed with the Extension Manager). Note that installing Extensions when being offline is currently not supported and you'd need to use some complex manual method.
You can also use the following manual method, which is useful if this extension cannot be installed with the Extension Manager or if you're using an old version of XWiki that doesn't have the Extension Manager:
- Log in the wiki with a user having Administration rights
- Go to the Administration page and select the Import category
- Follow the on-screen instructions to upload the downloaded XAR
- Click on the uploaded XAR and follow the instructions
- You'll also need to install all dependent Extensions that are not already installed in your wiki
After installation, visit Macros.ShowHideMacro
Release Notes
v2.0.2
- [SHMACRO-3] - Deprecated usage of getter [com.xpn.xwiki.api.DeprecatedContext.getMacro]
- [SHMACRO-4] - Links In ShowHide Macro Do Not Work
v2.0.1
v2.0
Full refactoring using jQuery in replacement to Prototype.js.
- Fix a couple browser compatibility issues.
- Keep HTML tagging similar to older version for compatibility purpose
- Reduce usage of the HTML macro to a minimum
- Allows interruption of the animations for faster operation
- Remove the requirement to use a unique id
- Use a single external JS script for all usages of the macro
- Old Blind animation is now called Slide, and there is no more a difference between those two.
v1.2
Added support for accents on show/hide messages
v1.1
Fixed show hide messages
Dependencies
Dependencies for this extension (org.xwiki.contrib.showhide:showhide-macro 2.0.2):
- org.xwiki.platform:xwiki-platform-rendering-wikimacro-api 6.4
- org.xwiki.platform:xwiki-platform-skin-skinx 6.4
- org.xwiki.platform:xwiki-platform-rendering-macro-velocity 6.4
- org.xwiki.rendering:xwiki-rendering-macro-html 6.4