Jump to content

[SOLVED] Copying and cloning a module - is this all I need to do?


noesac
 Share

Recommended Posts

I want to create a second Links menu / module. It seems straight forward enough but I just want to make sure that I'm not missing anything:

Step 1) Copy the files, give the module folder a new name

Step 2) Change the module display name in the .php file, via the code below:

$this->displayName = $this->l('NEW NAME HERE');



Step 3) Change the module name in the .php file, via the code below:

$this->name = 'NEW NAME HERE';



Step 4) Do a find / replace all for the new name created in Step 3


Is this all I need to do? Am I correct to assume that the filenames don't need to be changed (both the .tpl or .php)?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More