Wiki source code of Imports for Pages with Programming Rights
Last modified by Eleni Cojocariu on 2026/08/26 17:33
Show last authors
| author | version | line-number | content |
|---|---|---|---|
| 1 | When [[importing XWiki Pages>>doc:documentation.xs.admin.imports.import-xwiki-pages.WebHome]] into a subwiki rather than into the main wiki, the user performing the import needs [[Programming Rights>>documentation.xs.admin.rights.right-types.WebHome]] for the [[scripts>>Documentation.DevGuide.Scripting.WebHome]] on those Pages to keep working. Two ways give them that right: | ||
| 2 | |||
| 3 | * Import with a global user, that is a user defined on the main wiki, who has Programming Rights, and leave "Import as backup package" unchecked. | ||
| 4 | * Import with a global user who has Programming Rights, keep "Import as backup package" checked, and make sure the user recorded in the [[##XAR## package>>doc:documentation.xs.admin.exports.export-content-xar-format.format-specifications.WebHome]] also exists and has Programming Rights. | ||
| 5 | |||
| 6 | Taking neither way saves every imported Page without Programming Rights, and the scripts on those Pages stay broken until a user who has the right saves them again. |