This is the code in my following Class pages 1. aeternam.SupplierClass ## 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 = "aeternam.Suppliers") #set($defaultweb = "aeternam") #includeForm("XWiki.ClassSheet") 2. aeternam.SupplierClassTemplate ## replace MyName with the real class name ## save this template using the save button at the top left #includeForm("aeternam.SupplierClassSheet") 3. aetername.SupplierClassSheet ## You can modify this page to customize the presentation of your object ## at first you should keep the default presentation. ## Save this template using the save button. 1 Document $doc.name ## Change class name to your class name #set($class = $doc.getObject("aeternam.SupplierClass").xWikiClass) #set($hasProps = false) #foreach($prop in $class.properties) #if($velocityCount == 1) #set($hasProps = true) <dl> #end <dt> ${prop.prettyName} </dt> <dd>$doc.display($prop.getName())</dd> #end #if($hasProps) </dl> #end So you can see that defaultParent is set in the SupplierClass page. Let me know if I am doing anything wrong. Thanks Sachin Sergiu Dumitriu-2 wrote:
Did you try setting the parent on the SuppliersTemplate document?
-- View this message in context: http://www.nabble.com/Creating-structured-objects-tp14268015p14292658.html Sent from the XWiki- Dev mailing list archive at Nabble.com.