<
From version < 60.5 >
edited by Jean SIMARD
on 2013/11/05
To version < 60.6 >
edited by Jean SIMARD
on 2013/11/05
>
Change comment: Change what is the default code when creating a new class

Summary

Details

Page properties
Content
... ... @@ -44,14 +44,12 @@
44 44  * Click the "Create this Class" button. You should then see a code page with the following code:(((
45 45  {{code language="none"}}
46 46  {{velocity}}
47 -## Replace Main with the Space where you want your documents to be created.
47 +## Replace the default space with the space where you want your documents to be created.
48 48  ## Replace the default parent with the one of your choice and save the document.
49 49  ##
50 -#set($className = $doc.name.substring(0, $doc.name.indexOf("Class")))
51 -#set($defaultParent = "${doc.space}.${className}Class")
52 -#set($defaultSpace = 'Main')
50 +#set($defaultSpace = $doc.space)
51 +#set($defaultParent = $doc.fullName)
53 53  {{/velocity}}
54 -{{include document="XWiki.ClassSheet"/}}
55 55  {{/code}}
56 56  )))
57 57  

Get Connected