if you want to start completely "fresh" just delete /modules/<your_module> node 
and on restart magnolia will attempt to reinstall the module.

If you want to pretend that currently installed version is lower then it really 
is, just change to that version the value in /modules/<your_module>/version ... 
say you want to replay all tasks for 1.1.2, then set value of the version node 
to 1.1.1

HTH,
Jan

On Jul 2, 2011, at 7:44 PM, Magnolia Forums (on behalf of Eric Cho) wrote:

> 
> Hi All,
> 
> I have a basic custom module that setups up my project.  Very similar to 
> "demo-project" (minus all the ETK) stuff.
> 
> So in my Website I have a "Site A" with a bunch of sub-pages.  
> 
> Let's say I muck around with the pages...delete a couple, change the 
> template...etc.  
> 
> How do I start fresh again from my initial module configuration?
> 
> I have the following in my versionhandler.....does it look right?
> 
> [code]register(DeltaBuilder.update("1.1.2", "refresh website configs")
>                       .addTask(new NodeExistsDelegateTask("Backup website", 
> "creates a backup of website", 
>                                       "website", "/Site-A", new 
> BackupTask("website","/Site-A", true)))
>                       .addTask(new BootstrapResourcesTask("Updated 
> Configuration", "updates the default configuration") {
>                               protected String[] 
> getResourcesToBootstrap(final InstallContext installContext){
>                                       return new String[]{
>                                                       
> "/mgnl-bootstrap/siteAModule/website.Site-A.xml"
>                                       };
>                               }
>                               })
>                       );[/code]
> 
> Note- I'm currently on version 1.1.3.
> 
> Thanks,
> Eric
> 
> -- 
> Context is everything: 
> http://forum.magnolia-cms.com/forum/thread.html?threadId=f332201a-cd14-47e7-a361-9fb3ec497c9b
> 
> 
> ----------------------------------------------------------------
> For list details see
> http://www.magnolia-cms.com/community/mailing-lists.html
> To unsubscribe, E-mail to: <[email protected]>
> ----------------------------------------------------------------

-  
Best regards,

Jan Haderka, PhD.
Magnolia International Ltd.
http://www.magnolia-cms.com

Magnolia CMS is a Red Herring Europe 100 winner:
http://tinyurl.com/redherringE100
--------------------------------------
Magnolia®  - Simple Open-Source Content Management



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

Reply via email to