Hi. I'm new to Xwiki too, but what I can say is that I see just one possibility without recurring to programming. You can create a template and set the macro in it. Then everytime a user create an article, he would have 2 options: create a new page from scratch or create it from a template. That way they would have more freedom do select if they want TOC or not. =) 2014-03-07 17:24 GMT-03:00 craig barnett <[email protected]>:
Hi, I'm new to xwiki and having a lot of trouble doing something that feels like it should be simple. All i'm wanting is to be able to display the {{toc}} macro of the current page on a side panel. Everything I find online seems to be from previous xwiki syntaxes and therefore out dated and not working. In fact it seems like most of the responses I see just say that such a thing is in development, but those were all posts from 2009. We would really like a setup like this that way users don't have to go through the trouble of creating a {{toc}} on every page, since one for the current page will always be shown in the panel. It seems like it would make a lot of sense if syntax like {{toc source=currentPage}} existed and was usable from a panel. It would open up a lot of possibilities. If anyone has any advice or recommendations I would greatly appreciate it. I've been digging through velocity code for the past week so I'm starting to get the hang of it but still a complete noob in that area. Thanks for the time! Sincerely,Craig _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users