Reputation: 165
I'm developing a site for my company and I also need to modify the native component "mailto" to fit our needs. I'm working with a joomla 2.5
I was wondering if future updates occur, what will happen to the lines I've added, for example, in "\components\com_mailto\controller.php"...
I haven't find answers on the net.
Also, for the same reason, I've modified the default layout of an article. Should I rename it? and if yes, how, because I couldn't do it (when I've tried the article did not display).
Thanks for your help
Upvotes: 1
Views: 252
Reputation: 42622
While the answer from Lodder is totally valid, as a last resource you can also consider forking the com_mailto
as a separate component.
This has some disadvantages:
Upvotes: 1
Reputation: 19733
Before starting to edit core Joomla components, should should always have a look at the options you have. I don't believe in editing core file as it simply causes problems for updates when released, therefore in my opinion, you have 2 options:
Editing the layout of an extension view is completely fine, but it's strongly recommended you make a Template Override so that if the extension does ever get updated, your changes won't get overridden.
So to answer you initial question, any line you have added to the controller.php file will get overridden when you decide to update the extension.
Hope this helps
Upvotes: 2