cancel
Showing results for 
Search instead for 
Did you mean: 

Extra functionality during creating new site

sebek
Champ in-the-making
Champ in-the-making
Hello everyone Smiley Happy


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 )

Thanks for each suggestion Smiley Happy
2 REPLIES 2

zaizi
Champ in-the-making
Champ in-the-making
Hi,

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.

Ainga

sebek
Champ in-the-making
Champ in-the-making
http://outdoorcoding.blogspot.com/2009/10/alfresco-share-site-templates.html - solution Smiley Happy (working also with 3.4 )

…but I have next question: I want to add some ftl's files (FreeMaker Templates of c.Smiley Happy) 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 ? Smiley Happy

What should  I use? I think about TemplateServiceImpl but I haven't  good starting point Smiley Sad

Any suggestion ??