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

Expose the tree widget and the document tree as Velocity macros

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 7.3
    • Fix Version/s: 7.4-milestone-1
    • Component/s: Index, Tree
    • Labels:
      None
    • Difficulty:
      Easy
    • Similar issues:

      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

            • Assignee:
              mflorea Marius Dumitru Florea
              Reporter:
              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