I created a page to be used as a template. (via &template=Main.Subpage.Templates.MyTemplatePage URL Parameter). The TemplatePage is supposed to be maintained by several users, also discussing questions in the comments section.
When I create a new page based on MyTemplatePage, all the existing comments and discussion from MyTemplatePage are copied onto the new page. (This also happens when using a TemplateProvider, which I regarded as handling templating more strict.)
Yes yes, everything is wiki, but somehow I fail to see the use case here. Is it a misconfiguration of mine or a bug or a loose end? Should I file an issue?
A template page is a page acting as a … template. Meaning it’s copied as is. That includes everything: content, xclass, xobjects, etc. Comments are xobjects.
So it’s not a bug. What could be done would be some improvements where you could specify what parts to copy (using some query string parameters for ex).
Feel free to check if such an issue already exists in jira and if not you could create an issue.
Note that IMO this should be done not only for templates but also for the copy action, and there’s already an issue for this. So the idea would be for the template system to use the proper copy parameters to perform the copy.
I thought I had seen an issue related to not copying comments when copying a page but I cannot find it ATM. EDIT: it’s just some users who mentioned the following but without creating a jira issue I think:
Bare copy feature (be able to copy a page without its history and other metadata, configurable)