XWikiExplorerWidget

Last modified by Ecaterina Moraru (Valica) on 2017/09/04 14:51

XWiki Explorer Widget Documentation

Invalid macro parameters used for the [toc] macro. Cause: [Failed to validate bean: [must be greater than or equal to 1]]. Click on this message for details.

Introduction

Since XWiki 1.8.1, XWiki provide a JavaScript widget (based on SmartClient TreeGrid widget) that allows to browse a XWiki instance. This widget can be configured to allow browsing of a farm, a wiki or a space.

Configuration parameters

NameType (Values)
wikiString ("all" or the name of a wiki database)
spaceString (the name of a space within the wiki)
pageString (the name of a page within the space)
displaySuggestboolean (true to display a suggest field at the bottom)
displayLinksboolean (true to display links in tree nodes)
displayAttachmentsboolean (true to display attachments under page nodes)
displayAttachmentsOnTopboolean (true to display attachments before children nodes)

Examples

Prerequisites

First you need to copy the following javascript includes:

Farm

<div id="XWEWrapper" style="height:300px;margin-right:20px;padding-bottom:30px;"></div> <script> isc.XWETreeGrid.create({ defaultValue: "", htmlElement: "XWEWrapper", // Mandatory HTML wrapper. dataSource: isc.XWEDataSource.create({}), }).draw(); </script>

Wiki

isc.XWETreeGrid.create({ defaultValue: "", htmlElement: "XWEWrapper", // Mandatory HTML wrapper. dataSource: isc.XWEWikiDataSource.create({}), }).draw();

Space

isc.XWETreeGrid.create({ defaultValue: "", htmlElement: "XWEWrapper", // Mandatory HTML wrapper. dataSource: isc.XWESpaceDataSource.create({ space: "Main" }), }).draw();

Page

isc.XWETreeGrid.create({
  defaultValue: "",
  htmlElement: "XWEWrapper", // Mandatory HTML wrapper.
  dataSource: isc.XWEPageDataSource.create({ space: "Main", page: "WebHome" }),
}).draw();

Get Connected