Extensions Wiki » Extensions » Parent-Children Livetable macro

Parent-Children Livetable macro

Last modified by Thomas Mortagne on 2012/07/21 12:54
cogDisplay a livetable containing one level of parent-children granularity
TypeXAR
Developed by

Raluca Stavro, Mircea Staicu, Marius Dumitru Florea

LicenseGNU Lesser General Public License 2.1
Installable with the Extension Manager

Download v1.1

Description

Display a livetable containing one level of parent-children granularity, where parent is defined by a document in the given space that is not the space home page, has no parent or it's parent is the space home page.

Usage

Parameters

NameMandatoryDescription
spacenoSpace name to display the livetable for. The default value is the current space.
ordernoThe order to sort document titles by. The default value is asc.

Examples

Simple usage

Code

 {{parentschildrenlivetable space="XWiki" order="asc" /}}

The parent-child hierarchy is displayed only on the ordering by the document title. Otherwise, the hierarchy is dropped, i.e. a normal livetable is displayed.
The parent is any document which has either an 'empty' parent or the WebHome page of the given space as a parent.

Result (as image) parent-children-livetable-screenshot.png

The rows with a background color are highlighted in regards to the fact that those are documents which have no title set.

Prerequisites & Installation Instructions

  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

Release Notes

v1.1

This is a bug fix version. Changed the way the JSON variable is constructed for documents with no title and how the js evaluates and treats those documents.

Tags:
Created by Mircea Staicu on 2012/04/09 17:22

Download XWiki