ShowHide Macro

Last modified by Alex Cotiugă on 2023/02/27 00:16

cogWiki macros implementation for simple show/hide of a content with some animations.
TypeXAR
Category
Developed by

Denis Gervalle, Flavius Olaru, Ludovic Dubost

Active Installs241
Rating
1 Votes
LicenseGNU Lesser General Public License 2.1

Installable with the Extension Manager

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:

ShowHideMacro.gif

Since the Ajax macro have been dropped from this extension since version 1.1, this new release has been limited to the ShowHide macro. If you need the Ajax macro, you should either use version 1.0, or seek for another appropriate extension.

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:

  1. Log in the wiki with a user having Administration rights
  2. Go to the Administration page and select the Import category
  3. Follow the on-screen instructions to upload the downloaded XAR
  4. Click on the uploaded XAR and follow the instructions
  5. 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):

Tags:
    

Get Connected