Hello! After some search I found a possibility to create a new object which creates a tree. But there I have a problem. How can I add some velocity code (in this case the value of a variable) in the html macro esspecially when I am using javascript inside. This is my current code fort he tree: {{velocity output="true"}} ## 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})## {{/velocity}} {{html}} <div id="XWEWrapper" style="height:300px;margin-right:20px;padding-bottom:30px;"></div> <script type="text/javascript"> isc.XWETreeGrid.create({ ID: "Treeview", // Example of default values: // defaultValue: "Main.WebHome", // defaultValue: "[email protected]", defaultValue: "", htmlElement: "XWEWrapper", // Mandatory HTML wrapper. matchElement: true, // Make the widget match HTML wrapper size. // Example of data sources: // dataSource: isc.XWEDataSource.create({}), dataSource: isc.XWESpaceDataSource.create({ space: "$!xcontext.macro.params.space" }), //dataSource: isc.XWEWikiDataSource.create({}), displaySuggest: true, // Display the input at the bottom. displayLinks: true, // Node titles are HTML links. displayAttachments: true, // Display pages attachments. displayAttachmentsOnTop: true // Display attachments before page children. }).draw(); </script> {{/html}} But however "$!xcontext.macro.params.space is not read inside the html macro, how can I insert on this place the value of this variable? Thanks, Florian -----Ursprüngliche Nachricht----- Von: [email protected] [mailto:[email protected]] Im Auftrag von Florian Rhomberg Gesendet: Samstag, 25. Juni 2011 23:19 An: [email protected] Betreff: [xwiki-users] Treeview of single space Hello! I have a question according to the tree view in xwiki. Is there a possibility to change the velocity code that I can display the treeview of a single space? I didn´t find anything according to this topic. Thanks for your help! Florian _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users