Hi Jean-Francois,

You can check the global doc, and the sample versionhandler:
*Doc:*
http://documentation.magnolia-cms.com/reference/module-mechanism.html#Moduleversionhandling

*Sample:*
http://svn.magnolia-cms.com/view/community/magnolia/trunk/magnolia-templating-samples/src/main/java/info/magnolia/module/samples/setup/SamplesVersionHandler.java?revision=16700

The way we use versionHandlers is slightly customized to suit our needs,
but an example would be:

*public class VersionHandler extends DefaultModuleVersionHandler {*
* *
* private List<Task> installOrUpdateTasks = new ArrayList<Task>();*
* *
* public VersionHandler() {*
* super();*
* installOrUpdateTasks*
* .add(new BootstrapSingleResource(*
* "Bootstrap data types",*
* "Bootstrap my specific dataTypes",*
* "/path/to/your/types.xml",*
* }*
* *
* @Override*
* protected List<Task> getExtraInstallTasks(InstallContext installContext) {
*
* return installOrUpdateTasks;*
* }*
*}*


Let me know if this is what you need and how you get along!

Best regards,
Erik Alphenaar.
www.Orange11.nl

On Wed, Jul 4, 2012 at 12:19 AM, Jean-Francois Nadeau (via Magnolia Forums)
<[email protected]> wrote:

> [quote]
> However, when you are using a version handler to bootstrap your types,
> there is no auto-creation of dialogs and trees.
> [/quote]
>
> Thank you Erik. To bootstrap my data types I'm using XML export files in
> my mgnl-bootstrap folder.
>
> How do you bootstrap your types? Are you using the getBasicInstallTasks
> method in the version handler? If yes, I don't know how to do it. Can you
> show me an example.
>
> --
> Context is everything:
> http://forum.magnolia-cms.com/forum/thread.html?threadId=04164849-20a9-45e5-bfda-5900880e39a9
>
>
> ----------------------------------------------------------------
> 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]>
> ----------------------------------------------------------------
>
>


----------------------------------------------------------------
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