What code goes into the "local" directory?
Re: What code goes into the "local" directory?
Hello Melissa,
The "local" dir is used for any customizations that you want to make without having to touch core code. For example, if you want to change a template in a theme, you put it into local. If you want to change some language strings, you wouldn't update the strings in the /lang folder, but put the strings into a file in your local dir so that you don't run into problems when you update your code.
As far as plugins go, I think they always need to go into the artefact or block folders (or other folders if you are adding authentication etc.) because they need to be installed and thus database changes are being made.
Cheers
Kristina
Re: What code goes into the "local" directory?
So is the file structure the same as the core file structure ... just located in the "local" directory? But plugins, don't go into the local directory? Am I correct in what I am understanding?
Melissa
Re: What code goes into the "local" directory?
Hello Melissa,
You shouldn't always have to re-create the entire file path. See https://mahara.org/interaction/forum/topic.php?id=5830&post=24919 for some information for the lang strings for a plugin.
Cheers
Kristina