Changes for page XAR Format Specifications

Last modified by Thomas Mortagne on 2023/04/11 13:05

<
From version < 29.1 >
edited by Thomas Mortagne
on 2018/04/18 18:05
To version < 31.1 >
edited by Thomas Mortagne
on 2018/04/18 18:15
>
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -32,6 +32,11 @@
32 32  * ##backupPack##: if true it means that the XAR is a backup pack. It's up to the import to decide whether to import it as a backup pack or not but this provides the information that it is a backup pack.
33 33  * ##files##
34 34  ** ##language##: the language of the page. The default page content should use an empty string.
35 +** ##type##: the type of the document, it's possible to set any type since extensions can contribute new type. The standard types are the following:
36 +*** ##default##: used to force the default. Edit and delete and not allowed and a 3 ways merge is applied to the document during upgrades.
37 +*** ##configuration##: a document containing configuration. Edit is allowed and the document is never upraded.
38 +*** ##home##: a wiki home page. Edit is allowed and the document is upgraded only if it's not customized.
39 +*** ##demo##: a document which purpose is to provide demo data. Edit and delete are allowed and the document is upgrade only if it's not customized.
35 35  ** ##defaultAction##: when applied (which is not very often) this is the default action to apply on the document
36 36  *** ##-1##: undefined, its exact interpretation depends on what is reading it
37 37  *** ##0##: overwrite, whatever is in the database should be overwritten. This is what Maven XAR plugin set by default when generating the XAR.
... ... @@ -39,6 +39,14 @@
39 39  *** ##2##: merge, try to merge the document with what's in the database
40 40  ** The value inside the ##file## element is the reference of the page, relative to the current wiki (i.e. ##Space.Page##)
41 41  
47 +== Changelog ==
48 +
49 +=== 1.1 ===
50 +
51 +//XWiki 10.3//
52 +
53 +* Added optional ##type## attribute in ##<file>## elements
54 +
42 42  = Document XML file =
43 43  
44 44  Usually the documents files are located in a path where each parent space is a folder (as in ##Space/NestedSpace/Page.xml##) but this is not technically mandatory and parsers won't take the path into account (only what is indicated in the actual document file).

Get Connected