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

Add a parameter to the livetable macro to force displaying hidden docs

    XMLWordPrintable

Details

    • Unknown

    Description

      It would be useful to have a new parameter in the livetable macro so that if set the user will always see all documents including hidden ones.

      In order to be generic allow passing a list of Query Filters and if set then apply those filters only.

      Example:

      #set($options = {
        'resultPage' : 'QA.LiveTableResults',
        'tagCloud': true,
        "translationPrefix" : "qaapp.WebHome.LiveTable.",
        'rowCount': 15,
        'maxPages': 10,
        'selectedColumn': 'doc.name',
        'defaultOrder': 'asc',
        'javascriptName' : 'qaHomePageLiveTable',
        'queryFilters': 'currentLanguage, hidden',
      })
      

      For example if you want to show always hidden docs, then you would use:

      ...
        'queryFilters': 'currentLanguage',
      ...
      

      And if you wish to show all docs for all languages and hidden docs you would use:

      ...
        'queryFilters': '',
      ...
      

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: