Page 1 of 1

[SOLVED] CTL Module Maker - add new field

Posted: Tue Dec 01, 2009 7:00 pm
by jocando
Hello

I've got a website where I've used CTL Module Maker to set up a module to display a list of product information.  It all works fine.

But my client has now asked if we can add an extra field.  I understand that this can't be done?  You have to reinstall the module to be able to edit it?

This worries me, especially on a live website - will I lose all the product data that's already there?  Will I have to start again?

If there's anyone out there who has done this before, I'd really appreciate your advice on this.

Thanks
Jo

Re: CTL Module Maker - add new field

Posted: Tue Dec 01, 2009 7:20 pm
by klenkes
Hi Jo.

I've done this more than a dozen times and I never lost any data.

1. Make a backup of your database and to be on the safe side a backup of your old module too. (I backup my modified templates as well. Copy/Paste to an editor)

2. If you have a DNA file of your module, and I mean the DNA of the latest creation, you can load it in CTLMM and modify the level you want. Adding an additional field is pretty easy.

3. Just before the creation of the updated module I usually rename the old module to _mymodulename(underscore as prefix), because most of the time you are not allowed to overwrite module files.

4. Then create the new module files.

5. Go to the module manager and hit UPDATE on the new module.

That's it.

Bernd

Re: CTL Module Maker - add new field

Posted: Tue Dec 01, 2009 8:05 pm
by jocando
Thanks, that's really helpful!  Already backed up my files, so I'll give it a go.

Thanks for the reassurance!

Jo