Uploaded image for project: 'Glossary Application'
  1. Glossary Application
  2. GLOSSARY-49

Provide a macro to list all glossary entries used in a page

    XMLWordPrintable

Details

    • New Feature
    • Resolution: Unresolved
    • Major
    • None
    • 1.4.4
    • Application
    • None
    • Unknown

    Description

      For example: listGlossaryReferences.

      It would do something like:

      {{groovy}}
      import org.xwiki.rendering.block.match.*
      import org.xwiki.rendering.block.*
      import org.xwiki.rendering.block.Block.*
      
      def xdom = doc.getXDOM()
      xdom.getBlocks(new MacroBlockMatcher("glossaryReference"), Axes.DESCENDANT).each {
        println "* ${it.parameters.entryId}"
      }
      print ''
      {{/groovy}}
      

      See also https://forum.xwiki.org/t/glossary-application-does-not-render-anymore/8105/23

      Attachments

        Activity

          People

            Unassigned Unassigned
            vmassol Vincent Massol
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: