Questions tagged [plugin]

A plugin is a kind of Joomla! extension. Plugins provide functions which are associated with trigger events.

Filter by
Sorted by
Tagged with
0
votes
1answer
15 views

Updating JEventDispatcher triggers

Can anyone explain or point me to information on the new way to handle events in Joomla 4? I'm updating a component that uses triggers to display plugins, and it looks like this: $dispatcher = ...
3
votes
1answer
25 views

Why is my plugin not hooking into events?

I have a plugin that looks like this: class plgExtensionLogInstall extends JPlugin { function onExtensionAfterInstall($installer, $extensionId) { JLog::add("Extension installed: ".$...
3
votes
0answers
21 views

Joomla and Eventbrite Integration

I am looking for a way to integrate Eventbrite with Joomla. I want to show a list of upcoming events that I have created. There are a number of default widgets available with Eventbrite (copy / paste ...
1
vote
1answer
15 views

What is the best approach to implementing a component that responds to events?

I am working on a Component that will add a set of administrative functionality, which I am fairly confident in, but part of its behaviour will rely on code being triggered by events, which seems to ...
0
votes
2answers
35 views

How to change the site language by country IP

I try create system plugin for auto change language by IP. I don't have idea how to correctly write code so as not to receive an infinite loop of redirection requests. My code class ...
-1
votes
1answer
103 views

Simple plugin to check folder contents on component update

I'm wanting to make a very simple plugin. All it needs to do is On installation of the plugin, copy a folder to a particular component's library folder. When a particular component library is ...
1
vote
1answer
134 views

From outside of a component how to change a parameter

In a system plugin, I am using the onAfterRoute event to change a single parameter from a 3rd party component before being loaded. public function onAfterRoute() { if ('com_abc' == JFactory::...
3
votes
1answer
68 views

How to adjust search keyword sanitization settings as language override?

I am working on some custom search plugins and I have a 2-part question regarding the file administrator/components/com_search/helpers/search.php. I want to adjust the sanitization settings without ...
3
votes
1answer
51 views

Where are plugins found in Joomla 4?

I'm working with the Joomla 4 alpha 7, and I don't see anywhere to enable / disable plugins. Are plugins not enabled yet? [edited to add alpha, not beta!]
0
votes
1answer
42 views

Any way to redirect (301) pages for unpublished articles/links (404)?

I am wondering if where is any way in joomla to solve following issue: I am having URLs (articles) which may have been externally linked Now I want to disable this links (unpublish) but if I ...
2
votes
2answers
146 views

Using external PHP library and defined('_JEXEC') or die;

I want to use hatemile-for-php library (https://github.com/hatemile/hatemile-for-php) in my plugin. As I am only ever using this library within this one plugin, I included it in the plugin folder ...
2
votes
1answer
54 views

How to integrate google reviews into the page?

I am searching for a option to integrate Google Reviews in Joomla so that: I can show the reviews easily to vistors of the page (e.g. in a module) I can give google these review to show in the search ...
2
votes
1answer
41 views

How to check by onContentAfterSave it is a article?

I have follow code for after save: public function onContentAfterSave ($context, $article, $isNew) { $article = JModelLegacy::getInstance('Article', 'ContentModel')->getItem(); .... } It works ...
0
votes
1answer
76 views

roksprocket disable article tags

I am using roksprocket as a simple to use filter system of articles. Sadly I could not find a way to disable the badly looking tags underneath the modules itself. Of course there is a possible to use ...
3
votes
2answers
67 views

How properly save foreign characters in plug-in config parameters

I am developing a Joomla! authentication plugin and have a standard Joomla! install (J3.9.1) with PHP 7.2 and MySQL 5.6.29. My plugin has config parameters that are accessible via the backend. One of ...
0
votes
1answer
31 views

Add a message after saving an article

Based on this question:. https://joomla.stackexchange.com/a/24042/8968 I want to add the return code as a message after save to see if it was successful or not. Can someone tell how I can do this?...
1
vote
3answers
39 views

Develop a System Plugin with Sample Data for Options

I'm in the process of developing a system plugin. In the options is a subform-field (repetable), which contains several fields. In the "default" of the subform I can specify a record. a) How can I ...
1
vote
1answer
58 views

onAfterRender plugin issue

Both the PHP and the JS is tested and works in a module. But there's really no need for a module this is a plugin. I'm quite new to this so I thought onAfterRender would work, but nothing seems to ...
0
votes
1answer
47 views

Use the “sql” form field type in extension xml only if the table exists

I developed a plugin for Joomla!, and I have the below sql parameter field in my sampleplugin.xml <field name="cb_fields" type="sql" label="Select CB fields" query="SELECT name ...
4
votes
1answer
147 views

How to make my Editor plugin (type: editors-xtd) survive after updates?

I have a project that I am writing a component, module, and editor plugin for. I have managed to piece together a rudimentary plugin that works with TinyMCE (at least) which: Displays a custom ...
4
votes
1answer
75 views

Custom message after plugin installation

After an installation process, the translated manifest description from the sys.ini-file is shown in the Extension Manager. Unfortunately this text is also shown while editing the (published) plugin ...
1
vote
1answer
89 views

Joomla! extension/plugin for creating productbundles in an onlineshop

We looked up for a solution to create a product bundle in the frontend of our webshop. Yet we haven't found any solution that enables the User to "create a product bundle". Currently we are using the ...
1
vote
2answers
61 views

Avoid login from onUserAuthenticate

I'm trying to dismiss the login if my $completed var is false. I can make it work with die() but I wan't to know how to do this correct, so that the user gets returned to the login page with a error ...
0
votes
1answer
28 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
43 views

How to use “onUserAfterLogin” Event?

I want my users to get an email when they login for the first time. I am thinking to create an array to store userids that have logged in before. When users login, compare their userid with the array, ...
1
vote
1answer
28 views

How does Joomla initialise all active libraries and plugins?

I'm trying to import Joomla in a Yii application. It goes well, but some plugins and libraries are not loaded. Does anyone know how to achieve this? Something like JPluginHelper::loadAllActivePlugins(...
1
vote
2answers
40 views

What are the differences of Joomla modules vs components vs plugins?

A very basic question probably... But what are the differences in Joomla terms between: module components plugins If I am a developer for Joomla what and why should I name it a module, component, ...
3
votes
1answer
91 views

Caching items with different cache lifetime

I'm looking into using Joomla's caching mechanism for a plugin. However I would need to cache the plugin data for a given period of time irrespective of the site-wide cache settings. Is it possible ...
0
votes
1answer
86 views

How can I programmatically install a plugin?

How could you do programmatically what Joomla does when you install a plugin? Let's say, for simplicity's sake, that you have a plugin package file local with your Joomla instance. A solution might ...
0
votes
1answer
67 views

Own field type in subform, using with content plugin

for curiosity: I'm using this method to add fields to the standard articles: https://docs.joomla.org/Adding_custom_fields_to_core_components_using_a_plugin/de I have to use this, since the fields-...
0
votes
1answer
23 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
35 views

How to get Google Analytics using user provided web id? [closed]

I am working on a project similar to filippa.com. In the process of registering a website, the user will input her/his web id, something like XX-XXXX-X. I need to implement a plugin in my item view ...
1
vote
1answer
63 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 ...
0
votes
1answer
51 views

Including Results from API Call in Joomla! Search Results

My organization uses Joomla! for its customer facing site. There is a database that I only have REST API access to. I'm trying to ping that API to include results from it alongside the normal Joomla! ...
0
votes
1answer
25 views

How can I make it pssible for users to login and add their products?

I want to build a form for the users of my website to let them easily add their products in frontend page under the name of their shop. To this end, which plug-in, component, or extension ...
0
votes
2answers
855 views

Multiple primary key defined error when installing Jomestate plugin

I have Joomla 3.8.5 stable version. The code I am tring to execute is: Pastebin SQL code (I am tring to install the JOMESTATE plugin) I get the following error: JInstaller: :Install: Error SQL ...
3
votes
1answer
75 views

onUserAfterLogin popup - Joomla 3.6.4 Plugin

I need to create a plugin that displays a popup when an user makes a log in on my Joomla 3.6.4 website. I know that I need to create a Plugin and trigger the onUserAfterLogin event, but I don't know ...
1
vote
1answer
107 views

Shortcut to insert non breaking space in TinyMCE?

I'm using Joomla and it's integrated TinyMCE editor. I would like to use a shortcut like shift+space or ctrl+shift+space to insert a non breaking space fast and simple instead of to have to click a ...
1
vote
1answer
109 views

Virtuemart payment plugin override

I'm trying to override the "vmpayment" plugin. I've changed the layout of the "post_payment.php" file and put the file in the following folder structure: templates/mytemplate/html/...
0
votes
0answers
64 views

Custom Joomla plugin to catch specific database queries

Is it possible to make a plugin which will get triggered by specific database events in Joomla? I need to watch the $this->getTable() request in Joomla. For eg: $table = $this->getTable(); if (...
1
vote
1answer
29 views

How does plugins return value (boolean) affects other plugin in terms of execution?

How does the return value true or false affects other plugins of the same group? Does it prevent other plugins from executing when returning false?
1
vote
1answer
237 views

Custom fields don't render plugin shortcode

I am using custom fields introduced in Joomla 3.7 as a way to structure articles in my Joomla 3.8.3. installation. One of my custom fields contains shortcode to be rendered by another plugin. But all ...
1
vote
1answer
56 views

search component/plugin in joomla

I am new to joomla! and would like to design a custom search plugin to search through my database. I know that when using the default search, the onContentSearch() function is triggered and "search ...
1
vote
1answer
134 views

Joomla onExtensionAfterSave event

I am developing a component extension to create different forms for insurance. When I create a form in backend and save it by clicking the Save or Save & Close button, I am going to create a ...
2
votes
1answer
20 views

How to force an administration field be filled-in or plugin won't be enabled?

I have a Joomla plugin I wrote. There is a field for the Joomla Administrator to fill-in, it can't be left blank and there is no good default value to put in there. How can I force it that the plugin ...
1
vote
2answers
227 views

How do I pass the field value for a plugin into the myplugin.php itself?

I have a simple Joomla plugin I wrote and added a field to the .xml manifest: <config> <fields name="params"> <fieldset name="basic"> <field ...
2
votes
1answer
75 views

Parse code for plugin call in $row->text of Joomla article?

I'm writing a Joomla plugin where I want it to look through the Joomla Articles (and modules) for this: {myplugin} partno=12345678 {/myplugin} and change {myplugin} partno=12345678 {/myplugin} to a ...
0
votes
0answers
92 views

Plugin “Hello World!” for User onUserAuthorisation

I am trying to create a plugin to make some database queries from the event onUserAuthorisation. Right now I am just trying to set up a "Hello World" style plugin, because I am not sure yet that my ...
0
votes
1answer
147 views

article view - com_content not triggering content plugins when article is split

I've created a template override for the article view where the intro and the full text are invoked separately. So, instead of <div itemprop="articleBody"> <?php echo $this->item-...
2
votes
1answer
322 views

Creating a Component menu item via a Plugin

I've been reading over Joomla development documentation for awhile, but haven't picked up as much as I would like. What I'm trying to accomplish seems very simple on the surface, but navigating the ...