Wiki source code of Export Import a document with history
Last modified by Gabriela Anechitoaei on 2022/05/03 09:28
Show last authors
| author | version | line-number | content |
|---|---|---|---|
| 1 | 1. [[Create a nested document with multiple levels>>doc:Nested Spaces.Create a Nested Document using Add button]] 1.2 (don't need to create document 1) | ||
| 2 | 1. Make some changes to the page (After each change save the page): e.g. add text, remove text, add a table, add a link | ||
| 3 | 1. Check the history of the page (history tab at the bottom of the document) | ||
| 4 | 1. Use the following link to export the page, including the history: http:~/~/localhost:8080/xwiki/bin/export/1/2/WebHome?format=xar&name=1.2.WebHome&pages=xwiki%3A1.2.WebHome&history=true | ||
| 5 | 1. Create a new wiki | ||
| 6 | 1. From the subwiki menu click on Administer Wiki > Content > Import | ||
| 7 | 1. Upload the XAR previously exported from the main wiki | ||
| 8 | 1. Click on the Available package link | ||
| 9 | 1. Choose the option "Replace the page history with the history from the package" | ||
| 10 | 1. Click on the Import button | ||
| 11 | 1. Go to the page imported and observe the history tab |