Wiki source code of Customize a XAR File

Last modified by Eleni Cojocariu on 2026/06/18 15:10

Show last authors
1 It is possible to select which Pages to export via the [[export modal>>documentation.xs.admin.exports.export-content-xar-format.WebHome]], or to select which Pages to [[import>>documentation.xs.admin.imports.WebHome]] from the file, but if you need a customized [[XAR>>extensions:Extension.XAR Module Specifications]] to remove or rearrange Pages, you might need to customize the XAR manually, as it follows:
2
3 1. Unzip the file to extract the contents of the XAR file.
4 1. Open the ##package.xml## file and remove references to any Pages you don't want to include in the archive. This ensures only the selected Pages are part of the export.
5 1. Re-Zip together the modified ##package.xml## file and the Pages you want to put together in your archive, naming the file "MyArchive".##xar## where "MyArchive" is the actual name you want to give it.
6 1. If you need, [[import>>documentation.xs.admin.imports.import-xwiki-pages.WebHome]] the customized XAR.

Get Connected