Hi, The TOC in Curriki is depending on quite some code and some Curriki special model. While all the code is available in http://svn.xwiki.org/svnroot/xwiki/curriki/trunk/ it might not be that easy to adapt it to your need or to adapt your need to the curriki model.
We are also working on another project on a TOC. While it is easy to display the childrens of a page using a tree view structure, it is harder to show a page in context of it's parents. Because for this you need to decide what your entry point is in the parent list. Is it the top page of the same space ? The top of the wiki ? In the project we are working on, and in Curriki as well, the top of the trees are document that have a specific class. In the case of the new project this is based on a new "Collection" plugin (http://svn.xwiki.org/svnroot/xwiki/sandbox/plugins/collection/). I'm planning to move the code managing the TOC to this plugin and will try to make it as generic as possible. I've published the code here: http://code.xwiki.org/xwiki/bin/view/Snippets/WikiTableOfContentSnippet Not all the code makes sense as it depends on other code but it can work in a plain wiki and will display 3 levels of childs from your current page when used in a panel. Ludovic CASTRO roney a écrit : > Hello Everyone, > I was looking forward to have a tree view structure very similar to the one > presented in the table of contents in curriki (displayed in the bottom right > of this website: > http://www.curriki.org/xwiki/bin/view/Coll_curriki/RefineyourSearchforLearningResources?bc=;Coll_curriki.CurrikiHelp;Coll_curriki.HowtoSearchBrowseCurriki_0 > ) I sent an email to the webmaster of curriki (his answer is forwarded), and > as instructed by him, I am sending an email to the developers list in order > to ask for a guideline or even some code samples in order to implement this > structure in my xwiki if possible. > I am currently working with version XE 1.8.1 Thanks in advance for the help! > Regards > > Roney Castro > > ________________________________________ > From: Joshua Marks [mailto:[email protected]] > Sent: segunda-feira, 27 de abril de 2009 12:01 > To: CASTRO roney > Cc: [email protected] > Subject: RE: Table of contents in tree view > > Dear Rooney, > > We actually have two different tree displays we use, one for the > subject/topic select list and one for the TOC. They us different JS libraries > (One is Yahoo and one is EXTJS). In both cases we added this to the core > xwiki for our application. The Curriki application and code can be found at > http://curriki.xwiki.org<http://curriki.xwiki.org/>. > > If you send a message to the developers list (xwiki-devs), they can point you > to some sample code I believe. > > All the best, > > Joshua Marks > CTO > Curriki: The Global Education and Learning Community [email protected] > www.curriki.org US 831-685-3511 > > > ________________________________________ > From: Melinda Lies [mailto:[email protected]] > Sent: Monday, April 27, 2009 7:51 AM > To: Joshua Marks > Cc: [email protected] > Subject: Re: Table of contents in tree view > > See email below. > > melinda > On Mon, Apr 27, 2009 at 10:49 AM, CASTRO roney <[email protected]> > wrote: > Hello, > I manage an internal xwiki for my group, and I was looking for a way to > create a tree structure view, similar to the one you have in your xwiki > (displayed in the figure attached). Did you program this tree structure, or > is it a default feature that I didn't find in my xwiki? I must say it looks > really great! > I was wondering if you could please share its code with me, in case you > programmed it, or tell me which xwiki feature you used? > Thanks in advance! > Roney Castro > > > > > -- > -- > Curriki > 1615 L Street NW, Suite 650 > Washington, DC 20036 > www.curriki.org > [email protected] > Office - 202-626-8529 > Fax - 202 626 8774 > > _______________________________________________ > devs mailing list > [email protected] > http://lists.xwiki.org/mailman/listinfo/devs > > -- Ludovic Dubost Blog: http://blog.ludovic.org/ XWiki: http://www.xwiki.com Skype: ldubost GTalk: ldubost _______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs

