Hello,
If I understood correctly, you need to install some *.ftl files in 
"templates" workspace. There is a 
info.magnolia.module.inplacetemplating.setup.TemplatesInstallTask for that.

public class MyModuleVersionHandler extends DefaultModuleVersionHandler {

     @Override
     protected List<Task> getExtraInstallTasks(InstallContext 
installContext) {
         List<Task> tasks = new 
ArrayList<Task>(super.getExtraInstallTasks(installContext));
         tasks.add(new 
TemplatesInstallTask("/path/to/your/files/*\\.ftl", true));
         ...
         return tasks;
     }

}


On 25.01.2013 19:13, Tullio Bettinazzi (via Magnolia Forums) wrote:
> I'm creating my magnolia module.
> In my module installation I need to copy some files to the templates 
> directory and to the docroot one.
> Could someone suggest a way to do that job ?
> Is it possibile to write an installation task to do such work ?
> Tks
> Tullio
>


-- 
*Vlad Andronache*
Software Developer
E-Dea Works
Mobile: +4 0722 627 932
Skype: vlad.andronache



----------------------------------------------------------------
For list details, see http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------

Reply via email to