We are in the process of migrating an old Mindtouch instance over to DekiWiki. At the moment I am focused on translating some of the last few Dekiwiki scripts to Velocity.
I am a bit stuck on transclusion. In Mindtouch I can transclude a section from another page with the code {{ wiki.page(page, section) }}. Is this possible in Velocity in Xwiki and if so how would I do it?
I am finding the scripting documentation to be somewhat bewildering. As far as I can tell so far I would need to first do an $xwiki.getDocument(), if I can figure out the correct arguments. Then come the mystery steps of getting the contents of a section within that document and then inserting it into the page. Is there a simplified way to learn how to use the $xwiki and $doc objects, without just reading the extremely long doc pages from start to finish?
I think display will do it. The only other thing I would like to do with it is provide a link to the page with the included content.
Is there somewhere a list of the “simple” extensions like this that allow basic wiki operations? The existing list of “recommended” extensions is a long list of arcane stuff that I have no interest in. Stuff like “include” and “display” are pretty basic, and I wonder what other good stuff is lurking in the list that I will never find.
<never mind, it appears it is already installed on our wiki, although it’s very hard to verify that in the extensions manager>