cogAdd date picker to LiveTable in order to filter by Date
TypeXAR
Developed by

Zoubir Medjdoub

Rating
Rate!
0 Votes
LicenseGNU Lesser General Public License 2.1
Installable with the Extension Manager

Description

Since 9.5RC1, the livetable macro supports filtering on dates out of the box using the `date` type. Please refer to the documentation.

This extension contain a xar that allow you to filter by date in the livetable, once you click on the concerned field (specified by "type": "datetime"), a datepicker will be displayed in order to filter, you can see this in the screen above : 

LiveTable-FilterDate.png

Example

 
{{include document="XWiki.LiveTableCustom" /}}
{{velocity}}
#set ($columnsProperties = {
  'doc.name': {"type":"text","size":10,"link":"view"},
  'doc.space': {"type":"text","size":20,"link":"view"},
  'doc.author': {"type":"text","size":10},
  'doc.date': {"type":"datetime","size":10}
})
#set ($options = {
  'translationPrefix' : 'platform.index.',
  'selectedColumn': 'doc.date',
  'defaultOrder': 'desc'
})
#set ($columns = ['doc.name', 'doc.space', 'doc.author', 'doc.date'])
#livetableCustom('livetabledate' $columns $columnsProperties $options)

{{/velocity}}

Prerequisites & Installation Instructions

We recommend using the Extension Manager to install this extension (Make sure that the text "Installable with the Extension Manager" is displayed at the top right location on this page to know if this extension can be installed with the Extension Manager). Note that installing Extensions when being offline is currently not supported and you'd need to use some complex manual method.

You can also use the following manual method, which is useful if this extension cannot be installed with the Extension Manager or if you're using an old version of XWiki that doesn't have the Extension Manager:

  1. Log in the wiki with a user having Administration rights
  2. Go to the Administration page and select the Import category
  3. Follow the on-screen instructions to upload the downloaded XAR
  4. Click on the uploaded XAR and follow the instructions
  5. You'll also need to install all dependent Extensions that are not already installed in your wiki

Release Notes

v1.0

Initial version

Tags: livetable
Created by Zoubir Medjdoub on 2014/08/17 16:11
    

Get Connected