Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [system-plugin]

The tag has no usage guidance.

0
votes
1answer
24 views

How can I display a message based upon the value of a config item

I'm trying to show a warning based on robots being set to noindex or nofollow. I've copied the PHP Version quickicons plugin. Here's my php file. <?php /** * @package Joomla.Plugin * @...
1
vote
1answer
20 views

How to override language filter plugin?

I'd like to tweak my language filter plugin a bit, and if possible, I'd like to do that as an override. I know how to override some features in Joomla, but I'm not sure what to do in case of a system ...
0
votes
1answer
16 views

Plugin description translation

I have problem with plugin description translation. After first install the description is not translated. After second install (without uninstalling) the description is translated. Where is problem?
0
votes
1answer
17 views

Installing Language Filter and Language Code system plugins

I have a Joomla website (which I didn't install myself) that seems to be lacking the system plugins "Language Filter" and "Language Code". It seems like it wasn't installed as a multi-language site in ...
1
vote
0answers
29 views

Joomla BuildRule adds language code at the back of setPath

I'm having a problem with building the rule for a particular URL. Here's what I have in my system plugin: //... function onAfterInitialise() { require_once '/path/to/myhelper.php'; $router = $...
5
votes
2answers
126 views

Assign different single article template per category

Is it possible to change the template of a single article based on the category. The reason I ask is because I want to have a single article html override using fields and I don't want the client to ...
1
vote
1answer
31 views

What is the difference between onAfterGetMenuTypeOptions and onBeforeRenderMenuItems plugin triggers

Both of these plugin triggers have been mentioned by @Craig in his reply to another question, but what they actually do is not so clear. In /administrator/components/com_menus/models/menutypes.php ...
1
vote
2answers
129 views

Plugin to change incoming url

I am creating a component but need to redirect all incoming requests to the new component. The URL looks like this currently: index.php?option=com_component&view=xxx and when this comes in I want ...
0
votes
1answer
78 views

How to remove rel=“nofollow” with Joomla Buffer?

I am developing a plugin to get rid of any rel="nofollow" on HTML links using a buffer, but its not working. I am testing it with a nofollow link on a Custom HTML Module. I thought that "JFactory::...
1
vote
0answers
120 views

How I can load a sys.ini language file

I need in an own system plugin some language values from a sys.ini language file. I could only found this way to load the normal .ini file: $language = JFactory::getLanguage(); $language->load('...
0
votes
2answers
51 views

What is the correct (preffered) entry in SEF plugin for Site Domain

Recently I found out that meta tag rel="canonical" is missing from my page source. So I went to SEF plugin. It was published. But the field 'Site Domain' was empty. I entered http://my-site.com in the ...
5
votes
1answer
221 views

Is there an event like “OnAfterCompileHead”?

As per title, is there already an event that can work like a sort of OnAfterCompileHead? Maybe onAfterDispatch, onAfterRender or onBeforeRender? I need to change some meta tags in the <head> ...
4
votes
1answer
655 views

Change the elements displayed on the RSS Feed

I turned on the 'Show Feed Link' located in the 'Integration' tab of a Menu item which then adds the following in the document head: <link href="/link?format=feed&amp;type=rss" rel="...
0
votes
1answer
82 views

Flag based on Language and Two Factor Authentication

In a system plugin I need to have two flags, one to check if there are more than one language in administration and another flag to check if a two factor authentication is needed. Tried the following ...
5
votes
1answer
323 views

PageNavigation Plugin

I need to move the |Next/Prev* buttons, located in the pagenavigation plugin to after the <jdoc:include type="component" />; Basically render it anywhere in my templates' index.php? Any ideas ...
0
votes
1answer
66 views

Switch to tmpl=component in plugin code

Just like using tmpl=component in a URL, I would like to change the tmpl= in a system plugin. This, of course, does nothing: $app = JFactory::getApplication(); $app->setTemplate('component', null)...
2
votes
1answer
498 views

Can't add Javascript in plugin

I've been trying for the last hour or so to get a single javascript added to the head via my system plugin, and am kind of pulling my hair out as to why it is not showing up. Here's what I've got ...
3
votes
2answers
148 views

Change priority of loading Joomla core class and custom core class overrides

I would like to know in Joomla framework, there is a way to change priority loading some Joomla core classes after using JLoader::register() method in a system plugin developed to override Joomla core ...
2
votes
3answers
1k views

How to allow media manager open video files

How can select a video file (mp4, ogv, webm ...) in a plugin as parameter? I intend to select a video file in a plugin parameters, tried field type media but videos files are not listed. Using field ...
2
votes
1answer
66 views

Can all events be usable from any plugin?

In Joomla there are different plugin types/groups - System, Content, etc. Also events are separated. For example onAfterRoute is described as System event. Can I use onAfterRoute from within a Content ...
1
vote
2answers
231 views

Change existing xml field name values

I have a system plugin where I need to change some existing field name values in xml manifest file. In a new plugin installation this is not a problem, but if I want to upgrade an older version I will ...
2
votes
1answer
100 views

Is triggering an event in a list view bad for performance?

As a component developer I can see how useful is to include events to call plugins so other people can extend you component without hacking your core files. However I am always concerned about this “...
0
votes
1answer
66 views

Export/Import from security perspective

Hi have two working scripts, one to backup a db field and the other one to restore that same db field. What i would like to know if from security perspective they are safe or what can be improved. ...
1
vote
2answers
426 views

XMLHttpRequest and Joomla global variables

I have a system Joomla 3.x plugin with a restore its settings option. For this I use XMLHttpRequest to load a backup file. No problem this side. The problem is in the php file used to update the ...
3
votes
1answer
356 views

How to replace the content of Div for plugin

I'm writing a plugin for Virtuemart its System type plugin. In their older version (VM2.x) they managed the Div simply with a class and there is no inside Div structure so preg_replace is sufficient ...