20 Aug
2008
20 Aug
'08
12:57 p.m.
syam_kg wrote:
Hi
I have a document which has translated versions in German and French. Is it possible to delete only the German version. If yes please provide me the velocity snipplet for that.
You can delete a translation if that is not the original version of the document. From the browser, just append ?language=de to the delete URL, like: http://www.yourhost.com/xwiki/bin/delete/Some/Document?language=de From velocity, you can do: $xwiki.getDocument("Some.Document").getTranslatedDocument("de").delete()