Introduce a Page Templates API

Last modified by Pierre Jeanjean on 2026/11/24 14:29

The "Page Templates" administration section and the template provider sheets moved from the Administration Application to a new Page Templates Application (org.xwiki.platform:xwiki-platform-pagetemplate-ui), which upgrades will install automatically. XWiki.TemplateProviderClass is now created by Java code, with the same properties as before.

The new Page Templates API can read template providers as typed TemplateProvider objects, including the properties of template providers written for older versions, through the TemplateProviderManager component or the script service $services.templateProvider.getTemplateProviders(). Functional tests using the page objects of the section now access them from org.xwiki.platform:xwiki-platform-pagetemplate-test-pageobjects, under org.xwiki.pagetemplate.test.po.

Get Connected