juliopontes / joomla-override Goto Github PK
View Code? Open in Web Editor NEWPlugin to Override Joomla Extensions (Modules and Components)
Plugin to Override Joomla Extensions (Modules and Components)
/administrator/index.php?option=com_plugins&view=plugins
On activation see the following notices:
Notice: Undefined variable: option in /plugins/system/joomlaoverride/core/controller/controller.php on line 84
Notice: Undefined variable: option in /plugins/system/joomlaoverride/core/controller/controller.php on line 84
Add ability to have plugin look for administrator models while in site. Some
component (e.g. K2) use administrator models for "Edit Button", which required to load admin models rather than frontend models.
K2 Controller can not be override. Fatal error: Cannot redeclare class K2ControllerItem.
I try to override the login function from com_users components but i receive "Error 0" without any other information. I copied from components\com_users\controllers\user.php
in my template folder into code\com_users\controllers\user.php
and i modified it. Missing something?
after upgrade to j3.8.0 the plugin causes a problem due to changed include paths.
error thrown is:
Call to undefined method Joomla\CMS\Helper\ModuleHelper::addIncludePath()
In Joomla 2.5 on home page receiving the following error:
Fatal error: Cannot redeclare class ContentModelArticles in /components/com_content/models/articles.php on line 596
My articles.php:
class ContentModelArticles extends ContentModelArticlesDefault
{
}
On category page it works perfectly.
Seeing the above error in latest master due to $this being referenced outside an instantiated class (around line 27 in joomlaoverride.php).
Loaded the plugin params via the jpluginhelper class instead which rectified the problem:
$plugin = JPluginHelper::getPlugin('system', 'joomlaoverride');
$pluginParams = new JRegistry($plugin->params);
$customPath = JPath::clean($pluginParams->get('global_path','override'));
Cheers
Hayden
The plugin is already being used on a Joomla 3.1.5 site. When upgraded to Joomla 3.2.1 comes the white screen of death. The Apache error log shows a fatal error:
"Class 'LIB_JModuleHelperDefault' not found" apontando para "plugins/system/joomlaoverride/core/module/helper.php on line 13"
Disabling the plugin on the database makes the site work again.
The plugin breaks when AMM by NoNumber is installed. I believe that this is due to your recent additions of module overrides. I'd like to try the earlier version that did not provide for module overrides. Perhaps you'd be kind enough to repost that one?
Regards,
John Whelan
Hi, I'm using jomla 2.5.14 and when I activate the plugin, I get this error:
Parse error: syntax error, unexpected T_FUNCTION, expecting ')' in /my_address/plugins/system/joomlaoverride/core/loader.php on line 2
Hello, if enabled on a T3 Framework Joomla! installation generates the following error:
( ! ) Fatal error: Call to undefined method JModuleHelper::addIncludePath() in plugins/system/joomlaoverride/helper/codepool.php on line 187
Is there any solution?
Hi, In Joomla 3.0.2 Stable with Protostart template, Module Style "html5", Module tag "div", It generates module classes without "moduletable" prefix. For modules located in "right" position (position-7) It is always adding the "well" BS class too. For modules located in "breadcrumbs" position (position-2) no div is rendered.
Best regards
Hi, I'm using Joomla! 2.5.20 and when I activate the plugin, I get this error:
Parse error: syntax error, unexpected T_FUNCTION, expecting ')' in /home/u432683545/public_html/j25/plugins/system/joomlaoverride/core/loader.php on line 2
I think its due to this anonymous function, but I am not sure....might be due to PHP version 5.2.17.
To reproduce:
View the site home page. Beez3 loads instead of default protostar (correct outcome).
Install Joomla Override master code from this repository and enable plugin.
Reload home page. Default protostar template is loaded instead of Beez3 (incorrect outcome).
Disable Joomla Override from plugin manager. Refresh home page. Beez3 will load correctly again.
This issue occurs for other menu items as well; a category blog menu item assigned to Beez3 will load protostar when Joomla Override is enabled.
Changing the load order of system plugins does nothing (moved to first then last but still the default template was loaded).
Cheers
Hayden
Joomla 3.2.3.
Module chromes defined in template (modules.php) no longer apply when plugin is enabled, specifically chrome for mod_menu.
In the administrator site there is no changes, but in the site all chromes are reverted to "html5" chrome.
Hi,
thank you so much for this plugin, it is very very useful!
I have a problem in custom model classes. For example, I put my custom model of virtuemart orders into code folder, and I get this error message:
PHP Notice: Use of undefined constant JPATH_VM_ADMINISTRATOR - assumed 'JPATH_VM_ADMINISTRATOR' in /var/www/mywebsite/plugins/system/joomlaoverride/helper/override.php(116) : eval()'d code on line 25
and connected Warning and Fatal errors.
What do you think about?
Joomla 3.3.1
I am trying to override /components/com_content/models/articles.php
Created /override/com_content/models/articles.php
defined('_JEXEC') or die;
class ContentModelArticles extends ContentModelArticlesDefault
{
protected function getListQuery()
{
return parent::getListQuery();
}
}
Created "Featured Articles" menu item.
Receiving the following error:
Fatal error: Cannot redeclare class ContentModelArticles in /components/com_content/models/articles.php on line 680
Hi,
I am trying to set up overrides on the Media Manager component.
I have done the following:
Somehow my changes are not visible in the site itself. When I put the changes in the original media.php file, it works fine.
I used to work with the JED version of the plugin, Plugin Override (http://extensions.joomla.org/extensions/style-a-design/templating/15611) , and that didn't seem to work either.
Oh, little detail: I am aware that I am changing the front-end version of com_media. :-)
Any suggestions?
Apart from that: fantastic plugin that should be part of the Joomla core! Big time-saver when updating customized components/modules!
Hello again, I tested it also with K2 trying to override the view K2ViewItemlist.
I put the code in templates/mytemplate/code/com_k2/views/view.html.php and the code is executed, but then it is executed also the code of the core class.
Is it a normal behavior? I expected it was executed only the overrider class in templates/mytemplate/code/com_k2/views/view.html.php path.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.