Forums | Mahara Community
What code goes into the "local" directory?
26 December 2013, 1:30
What is the purpose of the "local" directory? If I wanted to create a plugin, is that were the code is supposed to go? What about if I wanted to override an existing plugin? Or is it better to just create a new one?
27 December 2013, 9:36
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.
29 December 2013, 15:31
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?
30 December 2013, 13:00
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.