You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Its quite simple, I would even like to do it myself, but I must find the aprobiate place first of all ;-). All is about the php file:
The line "jimport('joomla.plugin.plugin');" is not neccessary any more
On the other hand, there is a new protected var $autoloadLanguage. Setting it to true will load the language files automatically. I myself would suggest it as default, because multi-language is the standard meanwhile. So you would add some lines right below the class declaration.
Summary of changes (for a content Plugin):
//jimport('joomla.plugin.plugin');
class plgContentMyplugin extends JPlugin {
/**
* Load the language file on instantiation.
*
* @var boolean
* @since 3.1
*/
protected $autoloadLanguage = true;
The text was updated successfully, but these errors were encountered:
Hello.. I'm back 😉
Are you still interested in the subject?
I recently created a new repository where all extension templates will live: https://github.com/EasyCreator/templates
Any chance you remember inm which Joomla! version the $autoloadLanguage variable was introduced?
Its quite simple, I would even like to do it myself, but I must find the aprobiate place first of all ;-). All is about the php file:
The line "jimport('joomla.plugin.plugin');" is not neccessary any more
On the other hand, there is a new protected var $autoloadLanguage. Setting it to true will load the language files automatically. I myself would suggest it as default, because multi-language is the standard meanwhile. So you would add some lines right below the class declaration.
Summary of changes (for a content Plugin):
The text was updated successfully, but these errors were encountered: