From version < 4.4 >
edited by Vincent Massol
on 2008/05/26
To version < 5.1 >
edited by Thomas Mortagne
on 2008/05/26
< >
Change comment: There is no comment for this version

Summary

Details

Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.VincentMassol
1 +XWiki.ThomasMortagne
Content
... ... @@ -50,4 +50,22 @@
50 50  
51 51  1.1 HTML Export
52 52  
53 -TODO
53 +The 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.
54 +
55 +To export a page as HTML use the action menu as explained above or use the following type of URL:
56 +http://server/xwiki/bin/export/Space/Page?format=html
57 +In addition the following URL parameters can be added to refine what should be exported:
58 +* name: The name of the generated ZIP package.
59 +* description: The comment in the generated ZIP package.
60 +* 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
61 + ** wikinamepattern : the name of the wiki based on JAVA regular expressions (See http://java.sun.com/j2se/1.5.0/docs/api/java/util/regex/Pattern.html#construct for details on syntax)
62 + ** PageFullNamePatern : the full name pattern of the page based on HQL ?LIKE? comparator (See http://www.techonthenet.com/sql/like.php for details on syntax). Remember that the character % has to be converted in %25 in an URL.
63 +
64 +
65 +Some examples :
66 +
67 +* http://server/xwiki/bin/export/Space/Page?format=html : export the current page from the current wiki
68 +* http://server/xwiki/bin/export/Space/Page?format=html&name=packagename : export the current page from the current wiki in packagename.zip
69 +* http://server/xwiki/bin/export/Space/Page?format=html&pages=Space.%25 : export al the page from space ?Space? from the current wiki
70 +* http://server/xwiki/bin/export/Space/Page?format=html&pages=wiki2:Space.%25 : export all the pages frm space ?Space? from wiki ?wiki2?
71 +* http://server/xwiki/bin/export/Space/Page?format=html&pages=.*:%25 : export all the pages from all wikis

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 export is considered a backup pack...
  • 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

TODO

The 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: 

Some examples : 

Get Connected