(SOLVED) Modifying Modules - Local directory required?
girlyReads
Joined: 2007-08-15
Posts: 14 |
![]() |
Gallery version = 2.2.2 core 1.2.0.4 Hi, As a best practice going forward, if I amend a module, should I place the amended file in a directory named "local" as is the case for themes? Below, I have amended CustomFields to alter the description from "CustomFields" to "More Options..." - this might have been overkill, but I couldnt find a way to do it in the module itself. Quote:
{* |
|
ckdake
![]()
Joined: 2004-02-18
Posts: 2258 |
![]() |
Nope, local won't work for module code. I recommend you copy the module to MyModule, edit its files so that it works from there, and keep your changes separate (using MyModule instead of the original one) ____ |
|
floridave
![]()
Joined: 2003-12-22
Posts: 27300 |
![]() |
If it is a template file and not a *.inc or *.class file you can create a local directory and place CustomFields.tpl in there. So you would copy Or if your going to modify the other file then the best way is ckdake's way, create a custom module. Dave |
|
girlyReads
Joined: 2007-08-15
Posts: 14 |
![]() |
Hi guys, It was a CustomFields.tpl and I've created a local directory which worked like a charm. Much obliged |
|