It is common knowledge within the Joomla Development Community that Joomla allows you to override the HTML output for any extension (including core ones) that use the Joomla MVC Framework. In itself,
that is pretty exciting because it means that you can make an extension look however you want even without changing its core files, which would otherwise be known as "hacking" the core files.
However, what if you wanted to override more than just the HTML output? For example, what if you wanted Joomla to fire a plugin event every time a module was edited? Or what if you wanted Joomla to fire a plugin event each time a content article was deleted? In short, what if you wanted to change bits of the LOGIC in core components as opposed to just the HTML output?
Since Joomla 1.5 was released, it has been possible to override the controllers and models in core components using a method posted on Joomla.org:
http://community.joomla.org/blogs/community/521-did-you-know-overri...
However, if you take a look at the comments on the blog post, you'll see that not many people have had success doing so (or at least they didn't publicly sing about it).
Well, in our Tienda project, we found there were certain parts of the core registration workflow that we wanted to change, but:
(Why didn't we want #2? Well, because a front-end user could bypass the com_tienda registration by changing the URL)
To resolve the issue, we added an entire clone of the com_user component to a system plugin -- not just the controller class -- and by doing so, have been able to completely alter the com_user registration workflow.
The best parts are:
If you'd like to see what we've done and how we did it, register over at http://projects.dioscouri.com.
The system plugin will be part of the Tienda 0.3.1 release (expected in less than 10 days).
(This blog post originally was posted here: http://www.dioscouri.com/index.php?option=com_content&view=sect...)
My Plugin for override extensions
http://joomlacode.org/gf/project/noix/frs/?action=FrsReleaseView&am...
Comment
© 2012 Created by Amy Stephen.
You need to be a member of All Together, As A Whole to add comments!
Join All Together, As A Whole