<
From version < 46.1 >
edited by Silvia Macovei
on 2014/12/09
To version < 51.1 >
edited by Iulia Balan
on 2015/09/22
>
Change comment: There is no comment for this version

Summary

Details

Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.SilviaRusu
1 +XWiki.IuliaBalan
Content
... ... @@ -66,39 +66,48 @@
66 66  
67 67  The XAR export allows exporting pages in the internal XML format used by XWiki. This is the format that you can use to [[Import/Export>>platform:AdminGuide.ImportExport]] pages and applications into/from XWiki instances.
68 68  
69 -To export a page as a XAR use the action menu as explained above or use the following type of URL:
69 +To export a page as a XAR use the action menu as explained above or use the following type of URL (note that the ##Space/Page## part in the URL is ignored and the Export action only takes into account the ##pages## Query String parameter):
70 70  
71 71  {{code language="none"}}
72 -http://server/xwiki/bin/export/Space/Page?format=xar
72 +http://server/xwiki/bin/export/Space/Page?format=xar&pages=Space.Page
73 73  {{/code}}
74 74  
75 75  In addition the following URL parameters can be added to refine what should be exported:
76 76  
77 -* ##pages##: there can be several such parameters, each representing a pattern of pages to export. Here is the format of an export pattern: ##wikiid:pageFullNamePattern##(((
77 +* ##pages##: there can be several such parameters, each representing a pattern of pages to export (prior to XWiki 6.3, only fixed page names could be specified, not patterns). Here is the format of an export pattern:(((
78 +{{code language="none"}}
79 +wikiid:pageFullNamePattern
80 +{{/code}}
81 +
78 78  * ##wikiid##: the name of the wiki from where to get the wiki pages
79 79  * ##pageFullNamePattern##: the full name pattern of the page based on [[SQL "LIKE" comparator>>http://www.techonthenet.com/sql/like.php]]. Remember that the character {{{%}}} has to be converted in {{{%25}}} in an URL.
84 +)))
85 +* ##history##: if defined then also export the page's history. Example: ##&history=true##
86 +* ##backup##: if defined then the XWiki document author of each page remains the same as the one exported when reimporting into an XWiki instance.
87 +* ##author##: if defined, specifies the author's name in the XAR export which can later be viewed when reimporting into an XWiki instance.
88 +* ##description##: if defined, gives a description added to the XAR export which can later be viewed when reimporting into an XWiki instance.
89 +* ##license##: if defined, specifies the license to the XAR export which can later be viewed when reimporting into an XWiki instance.
90 +* ##version##: if defined, specifies the version of the export to the XAR.
80 80  
81 81  Some examples:
82 -* Exports all pages in the ##Main## wiki:(((
93 +
94 +* Exports all pages in the ##Main## space:(((
83 83  {{code language="none"}}http://server/xwiki/bin/export/Space/Page?format=xar&pages=Main.%25{{/code}}
84 84  )))
85 85  * Exports all pages in the current wiki:(((
86 -{{code language="none"}}http://server/xwiki/bin/export/Space/Page?format=xar&pages=%25.%25{{/code}}
98 +{{code language="none"}}
99 +http://server/xwiki/bin/export/Space/Page?format=xar&pages=%25.%25
100 +{{/code}}
87 87  )))
88 88  * Exports the pages ##Main.WebHome## and ##Blog.WebHome##:(((
89 -{{code language="none"}}http://server/xwiki/bin/export/Space/Page?format=xar&pages=Main.WebHome&pages=Blog.WebHome{{/code}}
103 +{{code language="none"}}
104 +http://server/xwiki/bin/export/Space/Page?format=xar&pages=Main.WebHome&pages=Blog.WebHome
105 +{{/code}}
90 90  )))
91 -)))
92 -* ##history##: if defined then also export the page's history. Example: ##&history=true##
93 -* ##backup##: if defined then the XWiki document author of each page remains the same as the one exported when reimporting into an XWiki instance.
94 -* ##author##: if defined, specifies the author's name in the XAR export which can later be viewed when reimporting into an XWiki instance.
95 -* ##description##: if defined, gives a description added to the XAR export which can later be viewed when reimporting into an XWiki instance.
96 -* ##license##: if defined, specifies the license to the XAR export which can later be viewed when reimporting into an XWiki instance.
97 -* ##version##: if defined, specifies the version of the export to the XAR.
98 98  
99 99  = HTML Export =
100 100  
101 -The HTML export allows exporting wiki pages as static HTML pages independent from the XWiki engine. All pages are exported in view mode. That way you can export a whole space containing documentation and access it on your computer without any web server. The export is done with the current skin.
110 +The HTML export, available starting with XWiki 6.3, allows exporting wiki pages as static HTML pages independent from the XWiki engine. All pages are exported in view mode. That way you can export a whole space containing documentation and access it on your computer without any web server. The export is done with the current skin.
102 102  
103 103  To export a page as HTML use the action menu as explained above or use the following type of URL:
104 104  
... ... @@ -110,11 +110,17 @@
110 110  
111 111  * ##name##: the name of the generated Zip file.
112 112  * ##description##: the comment in the generated Zip file.
113 -* ##pages##: there can be several such parameters, each representing a pattern of pages to export. Here is the format of an export pattern: ##wikiid:pageFullNamePattern##(((
122 +* ##pages##: there can be several such parameters, each representing a pattern of pages to export. Here is the format of an export pattern:(((
123 +{{code language="none"}}
124 +wikiid:pageFullNamePattern
125 +{{/code}}
126 +
114 114  * ##wikiid##: the name of the wiki from where to get the wiki pages
115 115  * ##pageFullNamePattern##: the full name pattern of the page based on [[SQL "LIKE" comparator>>http://www.techonthenet.com/sql/like.php]]. Remember that the character {{{%}}} has to be converted in {{{%25}}} in an URL.
129 +)))
116 116  
117 117  Some examples:
132 +
118 118  * Exports the current page from the current wiki:(((
119 119  {{code language="none"}}http://server/xwiki/bin/export/Space/Page?format=html{{/code}}
120 120  )))
... ... @@ -123,7 +123,6 @@
123 123  http://server/xwiki/bin/export/Space/Page?format=html&name=packagename
124 124  {{/code}}
125 125  )))
126 -)))
127 127  * Exports all the pages from the ##Space## space as well as the ##Space2.Page## page from the current wiki:(((
128 128  {{code language="none"}}http://server/xwiki/bin/export/Space/Page?format=html&pages=Space.%25&pages=Space2.Page{{/code}}
129 129  )))

Get Connected