During creating new site I want to add new folder + some doc's inside of this new folder. I started with modyfing controler 'create-site.js' and some files from :remote-api\config\alfresco\templates\webscripts\org\alfresco\repository\site\ (using documentlibrary.js) but maybe somebody had experience or other idea (f.e. some java API function which I can invoke in org.alfresco.repo.site.SiteServiceimpl )
You can register a custom Policy to listen for site creations. See policy info: http://wiki.alfresco.com/wiki/Policy_Component. On creation of a site you can set up the documentLibrary and add documents to it. You can restrict this feature to specific site types by creating a custom site preset.
…but I have next question: I want to add some ftl's files (FreeMaker Templates of c.) to this template and during creating site they should be preprocessed - some properties should be got from session and after that I wanna get fnal html files (from *.ftl -> *.html files).
Any idea ?
What should I use? I think about TemplateServiceImpl but I haven't good starting point