Changes for page XAR Format Specifications
Last modified by Thomas Mortagne on 2023/04/11 13:05
Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
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). ... ... @@ -188,7 +188,7 @@ 188 188 189 189 === 1.3 === 190 190 191 -Use XML 1.1 (used to be 1.0) for documents.204 +Use XML 1.1 (used to be 1.0). 192 192 193 193 === 1.2 === 194 194