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

Denis Gervalle, Flavius Olaru, Ludovic Dubost

Active Installs60
Rating
Rate!
0 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.

Tested on

This extension has been tested with the following configurations.

Extension VersionXWiki FlavorNotes
1.2XWiki Enterprise 2.7
2.0XWiki Enterprise 5.0

From version 2.x, this extension is based on jQuery and use requireJS, so it needs version 5.x to work properly.

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

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

Tags:
Created by Ludovic Dubost on 2011/05/13 20:40
    

Get Connected