Wiki source code of Use a Page Hierarchy as a Template
Last modified by superadmin on 2026/11/25 21:35
Show last authors
| author | version | line-number | content |
|---|---|---|---|
| 1 | [[Page Templates>>doc:documentation.xs.admin.page-templates.WebHome]] explains how a template is offered in the first place. | ||
| 2 | |||
| 3 | 1. Build the hierarchy you want copied under a single non-terminal page. Everything below that root is copied, at any depth.((( | ||
| 4 | {{image reference="template-hierarchy-source.png" size="medium" alt="The navigation tree showing the Project Template page, with Meeting Notes and Specification below it and Requirements below Specification"/}} | ||
| 5 | ))) | ||
| 6 | 1. [[Create a template provider>>doc:documentation.xs.admin.page-templates.create-page-template.WebHome]] and set its [[Template to use>>doc:documentation.xs.admin.page-templates.template-provider-fields.WebHome]] field to the **root** of that hierarchy, not to one of the pages below it. | ||
| 7 | 1. Create a page from the template, and let the first save finish: the pages are copied by a job, so a progress notification runs at the bottom of the window and the save button stays disabled until the copy is done.((( | ||
| 8 | {{image reference="template-hierarchy-progress.png" size="extra" alt="The bottom of the edit form during the first save, with the Done button disabled and a Saving 33.3 percent notification below it"/}} | ||
| 9 | ))) | ||
| 10 | 1. The new page now holds a copy of the whole hierarchy, one page per page of the template, under the name and the location you chose in the wizard.((( | ||
| 11 | {{image reference="template-hierarchy-copied.png" size="medium" alt="The navigation tree showing the new Apollo page under Projects, with the copied Meeting Notes, Specification and Requirements pages below it"/}} | ||
| 12 | ))) |