Copying modules

Hi all,

I want to copy a module to a new custom module and customize it. Is there an easy way of doing this or do I have to manually create everything in exactly the same way as the existing module?



Solution 1

1\ copy the folder
2\ replace all the names (Beans, Table names, etc) in a batch
3\ insert acl_actions table
4\ register the module in custom/Extension/application/Ext/Include/
5\ add into the lang in custom/Extension/application/Ext/Language/

Solution 2

1\ create your new module by Module Builder
2\ copy the vardefs fields from your source
3\ edit the layout in metadata file or just in your studio
4\ deal with other thing such as sub-panel, js…

1 Like

I don’t know how much you need to copy from the original module… but if you just want to start with a few fields, nothing more, and you don’t want to mess with programming and files, the simple way is to go in Module Builder, create a new package, and create a new module inside it. You are given a few module types to start with:

  • basic
  • company (I guess it’s similar to Accounts)
  • file (I guess it’s similar to Documents)
  • issue (Cases)
  • person (I guess it’s similar to Contacts)
  • sale

If this is not enough for your needs, then follow toneywu’s answer…

1 Like