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

Automatically set the content to HTML when using doc.location in Livetables

    XMLWordPrintable

Details

    • Easy
    • Pull Request accepted

    Description

      You shouldn't have to write this:

      {{velocity}}
      #set($columns = ['doc.location'])
      #set($columnsProperties = {
          'doc.location' : { 'html' : true}
      })
      #set($options = {
         'className': 'XWiki.XWikiUsers',
         'rowCount': 10
      })
      #livetable('users' $columns $columnsProperties $options)
      {{/velocity}}
      

      Instead you should be able to just write:

      {{velocity}}
      #set($columns = ['doc.location'])
      #set($columnsProperties = {
      })
      #set($options = {
         'className': 'XWiki.XWikiUsers',
         'rowCount': 10
      })
      #livetable('users' $columns $columnsProperties $options)
      {{/velocity}}
      

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: