Hey,
I try to rename a page created with a TemplateProvider directly when the user is in edit mode before it is saved, so it is directly saved with the programmed name. So I added to the class sheet.
#elseif($xcontext.action =='edit')
#if($doc.isNew())
#set($discard = $doc.rename('testname')
#end
#end
But it is not working. When the user saves the document, the name is not ‘testname’. Can you help me? Thanks a lot!