Hi everyone,
Following the move of the Tour Application to xwiki-platform
, I think it makes sense to do the same with the Templates Application which is also bundled in XWiki Standard by default (although it is maintained as a contributed extension).
The Template Application is currently providing 4 templates: Article, Encyclopedia, Meeting and SimplePage. The big question is where to move these templates inside xwiki-platform
.
- In separate modules: @tmortagne suggested that ideally these templates should be organized by domain, e.g. put the Meeting template in a module for the “meeting” domain. The issue is that we don’t have modules dedicated to these domains in platform (Article, Encyclopedia, Meeting) and I’m not sure if it’s worth creating these modules just to put there a single template.
- In the same module. I see a couple of options here:
- Move them to
xwiki-platform-administration-ui
, the reason being that there we have theTemplateProvider*
pages that the Templates Application relies on - Create
xwiki-platform-template-ui
; we already havexwiki-platform-template-api
but it’s about Velocity templates, not wiki page templates, so it can be misleading, as @tmortagne noted. One advantage could be that if we create this module then we could move theTemplateProvider*
pages fromxwiki-platform-administration-ui
(which is definitely not the right place for them). - Create
xwiki-platform-template-page
orxwiki-platform-template-provider
, insidexwiki-platform-template
, making it more clear from the name that this is about page templates. Of course, if we do this, we should move here allTemplateProvider*
pages. - Create a new top level module
xwiki-platform-pagetemplate
orxwiki-platform-templateprovider
or something like that. - Move them to the flavor, e.g.
xwiki-platform-distribution-flavor-common
- Move them to
To me the best option is 2.2, seconded by 2.3. WDYT?
Thanks,
Marius