Hi Sergiu Thanks a lot for the help Regards Syam Sergiu Dumitriu-2 wrote:
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() _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
-- View this message in context: http://n2.nabble.com/Velocity-code-for-deleting-a-document-translation-tp732... Sent from the XWiki- Users mailing list archive at Nabble.com.