cogGlossary feature for XWiki
Developed by

Sarthak Gupta, Vincent Massol, slauriere, Clément Aubin

Active Installs69
2 Votes
LicenseGNU Lesser General Public License 2.1

Installable with the Extension Manager


The Glossary application has the following features:

  • Add a new Glossary entry (Currently supports only single word entries emoticon_smile, except when using the glossaryReference macro)
  • View and filter all existing Glossary entries
  • Search for Glossary entries
  • Glossary Transformation for the ability to create links if a glossary entry appears on a wiki page.
  • 1.1+ Glossary Reference Macro to link to a glossary entry
  • 1.1+ Automatically modify page content to add Glossary Reference Macros on save

1.1+ It is possible to create glossary entries and then translate these entries in the different languages configured on the wiki. When using the glossary transformation, only glossary entries that exist with the locale of the page will be transformed.

Main view:


Adding a new Glossary entry

Enter the glossary entry, that you want to add in the text box and click the "Add Glossary Item" button


On the next page add a description to the glossary entry. After that Save the page.


Viewing existing Glossary entries

Existing glossary entries are shown in the live table as shown below:


On clicking a glossary entry, you will be directed to the page associated with it.


Searching Glossary entries

Enter the entry you want to search in the search box as shown and click the "Search" button.


You will be directed to the search page where you will see the matching entry resuts.


Update documents to add glossary entries automatically


You can enable the application to automatically update documents at save time to look for glossary entries. With this strategy, if a word corresponds to a glossary entry when saving a document, it will be replaced by a glossaryReference macro with the adequate parameters.

Similarly, if a glossaryReference macro exists in a document being saved, and if the corresponding glossary entry does not exist anymore, the macro will be removed.

In order to enable this feature, check the option Update documents on save in the wiki administration, in the section "Content" > "Glossary".

Glossary Reference Macro

The Glossary Reference macro makes it possible to link explicitely a label to a glossary entry in a given glossary, using the following syntax:

{{glossaryReference glossaryId="MyGlossary" entryId="lorem"}}lorem{{/glossaryReference}}

The glossaryId parameter is optional, defaulting to "Glossary", while the entryId one is mandatory.

Glossary in action

As we have the word "LOL" as a glossary entry, it will appear as a link on any page in which it appears as shown below:


On clicking that link, you will be directed to that glossary page.


There are 2 modes that you can use:

  • "Transformation" mode: In this mode, the page content is parsed every time the page is viewed and links to glossary entries are generated on the fly. Advantage: no impact on the page content
    • Since this can cause performance issues, it's not recommended to use it on wikis have large page content.
    • To activate it, edit WEB-INF/, look for a property named rendering.transformations and make sure it's uncommented and contains the value glossary.

      For example:

      rendering.transformations = macro, icon, glossary

      Make sure you restart your XWiki instance for the change to take effect.

  • "Update on save" mode: In this mode, when the page is saved, the content is parsed to recognize glossary entries and the content is modified to add Glossary Reference macros. Advantage: much better performances

Release Notes

All release notes



This version requires XWiki 13.10+.














No issue.


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


Dependencies for this extension (org.xwiki.contrib.glossary:application-glossary-ui 1.2.1):


Get Connected