Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-12835

Expose the tree widget and the document tree as Velocity macros

    XMLWordPrintable

Details

    • New Feature
    • Resolution: Fixed
    • Major
    • 7.4-milestone-1
    • 7.3
    • Index, Tree
    • None
    • Easy

    Description

      We should be able "call" the Document Tree from Velocity using something like this:

      #documentTree({
        'class': 'location-tree',
        'finder': true,
        'showAttachments': false,
        'showRoot': $showRoot,
        'showTerminalDocuments': false,
        'showTranslations': false,
        'showWikis': $showWikis
      })
      

      The same should be possible with the generic Tree Widget:

      #tree({
        'reference': 'XWiki.DocumentTree',
        'root': 'document:xwiki:Sandbox.WebHome',
        'openTo': 'document:xwiki:Sandbox.TestPage2'
      })
      

      All the parameters that are available for the wiki macros should be available also for the corresponding Velocity macro.

      Attachments

        Activity

          People

            mflorea Marius Dumitru Florea
            mflorea Marius Dumitru Florea
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - Not Specified
                Not Specified
                Logged:
                Time Spent - 1 day, 4 hours
                1d 4h