Thank you. That answers my question. I will look into the scripting macros. I suspect Groovy would give a similar experience. BTW: I have been trying a few things out with includes, and I am rather annoyed at the inability of accessing the included part and editing it from including page. If I edit an including page all I get is the include macros. Which makes sense in a way, but in MediaWiki you can get around it by having section editing of headings that bring you to the actual page... Section editing does not seem to anything of worth in XWiki.
I can probably rig a solution with navigation structures where you click to access the included page(s), but holy major annoyance, Batman. Anyway, thanks for replying. > Date: Wed, 11 Dec 2013 23:02:03 +0200 > From: mariusdumitru.flo...@xwiki.com > To: users@xwiki.org > Subject: Re: [xwiki-users] Conditional transclusion > > You can use the Velocity macro, > http://extensions.xwiki.org/xwiki/bin/view/Extension/Velocity+Macro#HExample2 > , and you can check if the old version exists with > $xwiki.exists($oldDocReference), see > http://nexus.xwiki.org/nexus/service/local/repositories/releases/archive/org/xwiki/platform/xwiki-platform-oldcore/5.2.2/xwiki-platform-oldcore-5.2.2-javadoc.jar/!/com/xpn/xwiki/api/XWiki.html#exists%28java.lang.String%29 _______________________________________________ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users