From version < 8.1 >
edited by Thomas Mortagne
on 2008/05/26
To version < 9.1 >
edited by Thomas Mortagne
on 2008/05/26
< >
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -53,8 +53,8 @@
53 53  
54 54  The HTML export allows exporting page as statics HTML,CSS, JavaScript... pages independent from xwiki engine. All pages are exported in view mode. That way you can export a whole space containing documentation and access it in your computer without any web server.
55 55  
56 -To export a page as HTML use the action menu as explained above or use the following type of URL:
57 -http://server/xwiki/bin/export/Space/Page?format=html
56 +To export a page as HTML use the action menu as explained above or use the following type of URL: http://server/xwiki/bin/export/Space/Page?format=html
57 +
58 58  In addition the following URL parameters can be added to refine what should be exported:
59 59  * name: The name of the generated ZIP package.
60 60  * description: The comment in the generated ZIP package.
... ... @@ -72,3 +72,4 @@
72 72  * http://server/xwiki/bin/export/Space/Page?format=html&pages=.*:%25 : export all the pages from all wikis
73 73  
74 74  
75 +

Exports

XWiki offers the ability to export a single wiki page or a set of wiki pages into several formats:

Invalid macro parameters used for the "toc" macro. Cause: [Failed to validate bean: [must be greater than or equal to 1]]. Click on this message for details.

To perform a page export simply go to the page, select the "Print" menu (in the Albatross/Toucan skins - if you use another skin it may be located somewhere else) and select the type of export you wish to perform as shown in the following screenshot.

export.png

Right now we don't have any user interface for exporting a set of wiki pages. This is a work in progress. However it's possible to export a set of pages by following the instructions below for each export format.

PDF Export

To export a page as PDF use the action menu as explained above or use the following type of URL:

http://server/xwiki/bin/export/Spave/Page?format=pdf

In addition the following URL parameters can be added to refine what should be exported:

  • pages: There can be several such parameters, each representing a page to export. For example: &pages=Main.WebHome&pages=Blog.WebHome.
  • includechilds: the value is a number specifying the depth of children pages to include in the PDF export. For example &includechilds=2 will include all children pages of the page to export, all its children (i.e. pages which have the page as its parent) and all the children's children.
  • includelinks: the value is a number specifying the depth of linked pages to include in the PDF export. For example &includelinks=2 will include all pages linked from the page to export and the links in the linked pages.
  • pagebreaks: if the value is set to 1 then a page break is inserted between each page exported.
  • comments: if set to 1 then also export the comments.
  • attachments: if set to 1 then also export the attachments (only if they are images).

RTF Export

The RTF export works exactly in the same manner as the PDF export.

XAR Export

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 pages and applications into/from XWiki instances.

To export a page as a XAR use the action menu as explained above or use the following type of URL:

http://server/xwiki/bin/export/Spave/Page?format=xar

In addition the following URL parameters can be added to refine what should be exported:

  • pages: There can be several such parameters, each representing a page to export. For example: &pages=Main.WebHome&pages=Blog.WebHome.
  • history: If defined then also export the page's history. Example: &history=true
  • backup: If defined then the XWiki document author of each page remain the same as the one exported when reimporting into a XWiki instance.
  • author: If defined, specifies the author's name in the XAR export which can later be viewed when reimporting into a XWiki instance.
  • description: If defined, gives a description added to the XAR export which can later be viewed when reimporting into a XWiki instance.
  • license: If defined, specifies the license to the XAR export which can later be viewed when reimporting into a XWiki instance.
  • version: If defined, specifies the version of the export to the XAR.

HTML Export

The HTML export allows exporting page as statics HTML,CSS, JavaScript... pages independent from xwiki engine. All pages are exported in view mode. That way you can export a whole space containing documentation and access it in your computer without any web server.

To export a page as HTML use the action menu as explained above or use the following type of URL: http://server/xwiki/bin/export/Space/Page?format=html In addition the following URL parameters can be added to refine what should be exported: 

To export a page as HTML use the action menu as explained above or use the following type of URL: http://server/xwiki/bin/export/Space/Page?format=html

In addition the following URL parameters can be added to refine what should be exported: 

  • name: The name of the generated ZIP package.
  • description: The comment in the generated ZIP package.
  • pages: There can be several such parameters, each representing a pattern of pages to export. Here is the form of an export pattern : [wikinamepattern:]PageFullNamePattern

Some examples : 

Get Connected