On Fri, May 29, 2009 at 2:35 PM, Vincent Massol <[email protected]> wrote:
> Hi Pascal,
>
> On May 29, 2009, at 2:25 PM, Pascal Voitot wrote:
>
> > The XWikiClassTemplate velocity script is in a XWiki/1.0 syntax doc:
> > ## replace Main with the Space where you want your documents to be
> > created
> > ## replace the default parent with the one of your choice
> > ## Save this template using the 'Save' button
> > #set( $class = $doc.name.substring(0,$doc.name.indexOf("Class")))
> > #set($defaultparent = "kmbase.${class}Class")
> > #set($defaultweb = "kmbase")
> > #includeForm("XWiki.ClassSheet")
> >
> > but now when you create a class, it is XWiki/2.0 and should be:
> > {{velocity}}
> > {{html wiki=true}}
> > ## replace Main with the Space where you want your documents to be
> > created
> > ## replace the default parent with the one of your choice
> > ## Save this template using the 'Save' button
> > #set( $class = $doc.name.substring(0,$doc.name.indexOf("Class")))
> > #set($defaultparent = "kmbase.${class}Class")
> > #set($defaultweb = "kmbase")
> > #includeForm("XWiki.ClassSheet")
> > {{/html}}
> > {{/velocity}}
> >
> > What's the best solution to your mind in order to have something
> > working in
> > all the cases?
>
> The created page will use the syntax of the template page thus it
> should work in all cases.
>
not sure to understand...
Do you mean if the template is 1.0, the created page should be 1.0 also?
Apparently, this is not the case yet, isn't it?
pascal
>
> -Vincent
> _______________________________________________
> devs mailing list
> [email protected]
> http://lists.xwiki.org/mailman/listinfo/devs
>
_______________________________________________
devs mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/devs