> On Thu, May 27, 2010 at 2:56 PM, Jerome Velociter <[email protected]> > wrote: >> Hi, >> >> I have two questions : >> >> * Why not just XWiki.TemplateClass ? >> * Why habing a metadata that indicate which template to use ? Shouldn't >> the document that hosts a Template(Privder)Class be itself the said >> template, and that's it ? (= remove the "template to use" field) > > Yes there was those possibilities: > - Adding a XWiki.TemplateClass to the document to offer has a template > and remove it during the copy operation. I didn't chose it because It > would have added one more bound between documents and the core. > - Add a new "isTemplate" meta to XWikiDocument but it has the same > drawback as 1) and it was missing extensibility (restrict the list of > space is the first use case but I'm sure we'll find more).
OK, makes sense not wanting to cleanup the template over copy. +1 for the proposal Jerome. > >> >> Jerome. >> >>> Hi XWikiers, >>> >>> I've been working on the ability to provide document templates on >>> document creation lately. >>> It's documented on dev.xwiki.org: >>> http://dev.xwiki.org/xwiki/bin/view/Drafts/DocumentTemplates >>> >>> Implementation: >>> - New "create" xwiki action >>> - Templates: create.vm, createinline.vm (for inline and ajax uses) >>> - Modification in the xwiki-core-rendering-xwiki core module so that >>> it gets the correct action (create) for broken links >>> - New XClass: XWiki.TemplateProviderClass (with associated sheet and >>> template), this class allow to build the list of template entries to >>> display in the create document form. >>> - New administration section: Templates. Allows to list existing >>> template providers and to create new ones. >>> >>> I'm almost ready to commit (I only need one more day to write >>> functional tests) and I'd really like to do it after the 2.4M1 >>> release. WDYT ? >>> >>> JIRA: http://jira.xwiki.org/jira/browse/XE-672 >>> >>> JV. >>> _______________________________________________ >>> devs mailing list >>> [email protected] >>> http://lists.xwiki.org/mailman/listinfo/devs >>> >> >> >> _______________________________________________ >> devs mailing list >> [email protected] >> http://lists.xwiki.org/mailman/listinfo/devs >> > _______________________________________________ > devs mailing list > [email protected] > http://lists.xwiki.org/mailman/listinfo/devs > _______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs

