I use treeview in a panel for navigation in my xwiki,
but I have a problem with displaying of pages in this treeview. I want to display titles
of the pages instead of their names. Is this possible?
I don't know. Maybe you can find something in the source code
The second problem is sorting. Pages are sorted
according their creation but I would like to sort them in another way, eg. alphabetically.
Is it possible to sort this treeview?
I have an xwiki 2.4.3.
There is a code of treeview from the panel:
## Smartclient
$xwiki.jsfx.use('js/smartclient/initsc.js', {'forceSkinAction' : true,
'defer' : false})##
$xwiki.jsfx.use('js/smartclient/modules/ISC_Core.js', {'defer' :
false})##
## TODO: remove this line
## when
http://forums.smartclient.com/showthread.php?t=3097 will be fixed
$xwiki.jsfx.use('js/smartclient/overwritesc.js', {'defer' : false})##
$xwiki.jsfx.use('js/smartclient/modules/ISC_Foundation.js', {'defer' :
false})##
$xwiki.jsfx.use('js/smartclient/modules/ISC_Containers.js', {'defer' :
false})##
$xwiki.jsfx.use('js/smartclient/modules/ISC_Grids.js', {'defer' :
false})##
$xwiki.jsfx.use('js/smartclient/modules/ISC_Forms.js', {'defer' :
false})##
$xwiki.jsfx.use('js/smartclient/modules/ISC_DataBinding.js', {'defer' :
false})##
$xwiki.jsfx.use('js/smartclient/skins/Enterprise/load_skin.js', {'defer'
: false})##
## XWikiExplorer
$xwiki.jsfx.use('js/xwiki/xwikiexplorer/xwikiexplorer.js',
{'forceSkinAction' : true, 'defer' : false})##
<div id="XWEWrapper" style="height:600px;margin-right:5px;
padding-right:5px;padding-bottom:30px;"></div>
<script type="text/javascript">
isc.XWETreeGrid.create({
ID: "Treeview",
defaultValue: "$doc.prefixedFullName",
htmlElement: "XWEWrapper", // Mandatory HTML wrapper.
matchElement: true, // Make the widget match HTML wrapper size.
dataSource: isc.XWESpaceDataSource.create({ space:"mySpace" }),
displaySuggest: false, // Display the input at the bottom.
displayLinks: true, // Node titles are HTML links.
displayAttachments: false, // Display pages attachments.
displayAttachmentsOnTop: false // Display attachments before page children.
}).draw();
</script>
</div>
#panelfooter()
Thank you very much for your answer.
Zuzana Zapletalova
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users