Template questions

Hello, I have two questions that I have been researching but haven’t been able to find any answers yet.

  1. Is there a nested page template to where you can have nested page templates within a higher level page template. For example, a template with a page called ‘page1’. Page1 has nested pages within it called ‘pageA’ and ‘pageB’. ‘PageA’ and ‘pageB’ have their own template content. when the template 'page1’is used to create a new page, ‘pageA’ and ‘pageB’ are also created under the new page. Basically, a template of a page with nested pages inside of it.

  2. If a template is updated, can all the pages that used that template also be automaticaly updated? For example, the pages ‘exa1’ and ‘exa2’ and ‘mypage’ all used a template called ‘template1’. If ‘template1’ is updated, can ‘exa1’, ‘exa2’, and ‘mypage’ also all be automatically updated with the change? I read something about Xclasses. Is that what is needed for this function?

Yes, see http://extensions.xwiki.org/xwiki/bin/view/Extension/Administration+Application#HUsingahierarchyofNestedPagesastemplate

There’s nothing predefined for this as it doesn’t make sense most of the time. A template is just the starting point when creating a new page (the default content / values you start with). Once you modify the page you diverge from the template so it’s hard to update the page when the template changes without loosing the changes you made to the page.