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
0 answers
21 views

Custom task on Task Scheduler

I am trying to create a custom Joomla 4 task scheduler by creating plugin, which runs the custom task code. I created the test plugin name plg_abc_def, but I don’t know how to link it with the Task ...
TMisiunas's user avatar
0 votes
1 answer
141 views

Overwrite Site Model getListQuery

I have a System Plugin to filter Joomla 4 Category Blog Articles by Custom Fields. The Plugin basically overrides the core content ArticlesModel by loading it in the onAfterRoute Event like this: ...
cappu's user avatar
  • 137
0 votes
3 answers
91 views

Unloading once loaded plugin in Joomla 4

So when doing this i can import a Plugin and run an event on it: PluginHelper::importPlugin('mygroup', 'myplugin'); Factory::getApplication()->triggerEvent('onMyEvent', ['some' => 'stuff']); If ...
maidan's user avatar
  • 383
0 votes
2 answers
111 views

$this->params() is Null in Joomla 4 Plugin

I have a Joomla 4 plugin that uses a ServiceProvider which basically works fine. It's just that I can't access the plugin's configuration parameters. namespace <Domain>\Plugin\System\Replacer\...
cappu's user avatar
  • 137
1 vote
1 answer
88 views

Documentation for Joomla 4 application object

I would like to find the documentation for the Jooma 4 application object giving subclasses and methods, etc. I have looked hard on the Joomla.org website, but can't find it there. (It seems difficult ...
Bruce Button's user avatar
0 votes
1 answer
61 views

Joomla 4 plugin to set template style for article

I would like to create a plugin to load a specified template style for each article on Joomla 4. The basic idea is as follows: Use a custom field in the article to specify the desired template style ...
Bruce Button's user avatar
0 votes
0 answers
14 views

Joomla Vote causing an error in Google Search Console : itemReviewed

I found that using built-in in Joomla 3.10 content vote plugin is causing some errors on Google Search Console - itemReviewed. I turned this plugin off - it helped, no errors. I installed JVE free ...
Adam M.'s user avatar
0 votes
2 answers
60 views

Custom layout for plugin options

I'm looking to display my system plugin options in a custom layout. So i checked something like options for article blog layout: But these use a custom layout that renders the options with a form-...
maidan's user avatar
  • 383
0 votes
1 answer
33 views

Get Category id onAfterRoute when using category dropdown

I have written a Joomla 4 plugin (trigger: onAfterRoute) that changes the layout of the article edit based on the category. This works when creating a new article with a pre-selected category, but ...
user1621015's user avatar
1 vote
0 answers
20 views

Joomla Logman Notify modify email message

A question about the joomla plugin Logman Notify. (https://www.joomlatools.com/extensions/logman/documentation/plugins/notify-plugin) The Notify plugin can send activity notifications to a selected ...
TheoS's user avatar
  • 11
0 votes
0 answers
27 views

Error 0 after uninstalling Nicepage plugin

I uninstalled the Nicepage plugin in Joomla after I had problems with the menu on my website. I made a menu in Joomla with all of the articles, but it wouldn't show when I opened the website in the ...
Sam Peeters's user avatar
2 votes
0 answers
71 views

Subform default values escaped when installing/discovering plugin first time

I made a small plugin, which uses a repeatable subform param element. It doesn't really matter what the plugin does: <config> <fields name="params"> <fieldset name=...
maidan's user avatar
  • 383
1 vote
1 answer
65 views

Changing plugin parameter field value dynamicaly

I have a plugin which needs to change its parameter configuration depending on some conditions upon configuring in backend. The plugin using the SubscriberInterface because it is listening to some ...
maidan's user avatar
  • 383
1 vote
1 answer
18 views

Super slow editing mask because repeatable custom field is in subform and calls API many times

I have some options to configure a plugin of mine. These options contain one subform field, that can be repeated. The purpose of the field is to match names of one type to ones of another type. The ...
maidan's user avatar
  • 383
0 votes
1 answer
54 views

Accessing system plugin params by custom field

I am working on a system plugin which uses its own custom field. The plugin has an XML looking like this: <config> <fields name="params" addfieldprefix="Joomla\Plugin\...
maidan's user avatar
  • 383
1 vote
2 answers
114 views

Can't Access Cookie From Plugin That Was Set in Another Extension

Background: I'm writing a component where you can add items to a cart. When the user isn't logged in, it uses a token to identify them, stored as a cookie. The cookie is stored in a view's controller. ...
Obscerno's user avatar
  • 191
2 votes
2 answers
190 views

Register Plugin/Class Joomla

We have a custom login plugin which extends the CMSPlugin. I am trying to register the Class of the plugin inside a module but the following scenarios occur. Case 1 JLoader::register('...
anthi_p's user avatar
  • 57
3 votes
1 answer
71 views

How to bootstrap loading of all libs and plugins from command line?

We have a special situation where we include Joomla from within Yii 2, which worked fine with Joomla 3, but Joomla 4.2 is so far giving us some problems. The latest issue is: Error: Class "Joomla\...
Olle Härstedt's user avatar
1 vote
2 answers
131 views

Joomla plugin ajax request / class extend

I have created a "custom" authentication plugin and inside of it there is a function (onAjaxMyfunction) that is called from a module through com_ajax. The call "url" looks like ...
anthi_p's user avatar
  • 57
0 votes
1 answer
74 views

How to connect custom authentication plugin to openid so I can authenticate it through steam?

I need to create a "login using steam button" for a website using Joomla, from my research I can gather up that using OAuth no longer works for Steam, so I'll have to create a custom ...
gabriel0369's user avatar
2 votes
2 answers
240 views

How to check if a file is in root subfolder

This question looks pretty easy (and probably it is), but I am stuck with the following scenario: I'm using XAMPP and have several Joomla installations in subfolders such as \joomla3, \joomla4, etc. I ...
Plamen's user avatar
  • 745
2 votes
1 answer
107 views

Joomla 4 Plugin to overwrite value of a custom field

I need a Joomla 4 Plugin to overwrite a marker in Custom Fields of type text or textarea with the article's title. I added a onPrepareContent() method where I have access to the articles title as well ...
cappu's user avatar
  • 137
0 votes
0 answers
18 views

modal popup just after login

I am new to the Joomla world and I have to face a difficult problem. I have to make sure that immediately after logging in to the user, a modal popup with a select box is proposed. The content of the ...
Muflo's user avatar
  • 1
0 votes
0 answers
107 views

How to use emoji picker plugin from editor in Joomla in a textarea field?

I need to use the emoji picker plugin from editor to add emojis in a textarea field. Is it possible? It's for my chat component: https://extensions.joomla.org/extension/communication/chat/tabapapo/
JonatasCF's user avatar
1 vote
1 answer
32 views

Show configuration forms of different plugins into a single tab

I wrote several plugins and for each one exists a relative configuration form loaded by the onContentPrepareForm event using the $form->loadFile() method Now each time I use this technique, Joomla ...
Gino's user avatar
  • 11
0 votes
1 answer
41 views

Joomla field logic control plug-in

Is there a plugin in joomla that controls the display or hiding of another field based on the specified field similar to the XML showon attribute, or similar to the conditional logic in the WordPress ...
user avatar
2 votes
0 answers
48 views

Unit tests for Joomla 3 plugin

I have written some moderately complicated software for my Joomla site and want to improve on my code base in coming releases. To this end I am writing some unit tests however it's hard to run the ...
Huw Evans's user avatar
  • 371
2 votes
1 answer
127 views

Scheduled task only running when logged in0

I built a Joomla plugin for a task and I scheduled that task to run every 5 minutes. While monitoring the task it seems it is only running when I am logged into the administrator back end if the site....
Brandon's user avatar
  • 69
1 vote
1 answer
100 views

Is it possible to remove the "new article" button from all sections in a Joomla website?

A mate and I are doing an internship at university, and the project we are working on is a small Joomla 4.1 website. Our supervisors asked us to override the mechanics of content insertion so that an ...
Vincenzo Oliva's user avatar
0 votes
1 answer
118 views

Override a method of the Indexer class (com_finder) using a plugin

I'm trying to override a Joomla method (toggleTables in the Indexer class of the com_finder) using a plugin, but it doesn't work. Where am I going wrong? use Joomla\CMS\Plugin\CMSPlugin; use Joomla\...
Nintendomi's user avatar
2 votes
1 answer
243 views

Scheduled Tasks Infrastructure in Joomla 4.1

Is there documentation for the new Scheduled Tasks Infrastructure in Joomla 4.1 (https://github.com/joomla/joomla-cms/pull/35143)? I just created a test task for setting the site offline. I scheduled ...
agi's user avatar
  • 303
1 vote
1 answer
289 views

com_ajax to plugin / or plugin field

I have this customfield plugin where the user can select a folder in a popup, the call should be ajax based. The form-"field" including AJAX call etc. works already in some of my modules ...
Marco's user avatar
  • 583
1 vote
1 answer
52 views

J4 - Custom Profile Plugin - Hiding Groups

I have a custom profile plugin to extend user profile data. I want to add a switch to hide all BUT the core group of fields when the user checks and edits their profile. In my plugin (profileabc.php) ...
Glenn Arkell's user avatar
1 vote
1 answer
86 views

Simple Joomla plugin not working on frontend

I have a simple Joomla 3 plugin that works fine on backend for resizing images when uploading from multimedia manager: <?php defined('_JEXEC') or die('Restricted access'); class ...
Diego Moreno's user avatar
1 vote
1 answer
1k views

Call to undefined method Joomla\CMS\Application\SiteApplication::isSite() in Joomla 4

I updated to Joomla 4! and the site displays an error. Here is a snippet of the debug log. 2021-11-23T16:27:43+00:00 CRITICAL ::1 error Uncaught Throwable of type Error thrown with message &...
marcelo's user avatar
  • 13
0 votes
1 answer
32 views

Does on after save work with the API call?

I want to listen to when an article has been changed and then send a request to a webhook. If it was manually being entered then I could do an onAfterSave plugin. Will this work with an API call? ...
Eoin's user avatar
  • 1,889
0 votes
1 answer
91 views

Load Plugin Form into Component Form

I'm trying to load a plugin's form into my component form in Joomla4. So my components getForm method is: $form = $this->loadForm( 'com_mycomponent.member', 'memberform', array( '...
Glenn Arkell's user avatar
2 votes
1 answer
97 views

Display instructions or other text in Plugin

I would like to display some basic text, instructions and maybe a change log in HTML would be nice, under the first tab of my Plugin, what methods or techniques are available? In my sample screen shot ...
Irata's user avatar
  • 3,587
1 vote
1 answer
86 views

Joomla User Registration Form Plugin not working - simple registration (PlgUserSimpleRegistration)

I try to have the plugin working to have a email/password only on the registration form. Joomla Registration: Remove unneeded fields I install the plugin correctly with XML below: <extension ...
Jeremy Sanglier's user avatar
1 vote
0 answers
31 views

Custom Canonical plugin throws "404 - page not found" error when enabled for Tags

I use Joomla Custom Canonical plugin for creating the canonical links. It works well, except for the tags: If I switch on the canonical creation for tags and then some of the tags, will drop a 404 ...
CodeGuru's user avatar
1 vote
1 answer
50 views

Plugin for two types of events from different plugin types

AS written here Plugin types determine which events a plugin can react to. I am now in the process of enabling 2 tasks. First via installer that does a check before update a download id and second I ...
Marco's user avatar
  • 583
0 votes
1 answer
53 views

Seeking an extension that displays "Who visited my profile"

Programming is my weakest point; I searched all possible topics, but haven't found what needed. Joomla 3.9.27 + Easy Profile Pro 2.9.1 I need to add the function to view the visitors of my profile. I ...
Bizzy Montana's user avatar
1 vote
1 answer
103 views

How to enable or disable plugins from manifest file?

I have written a component and it installs fine except that the plugins are all installing as enabled. What I want to do is enable some and disable others. Here is what I have tried: <plugins ...
Scott Smith's user avatar
2 votes
0 answers
165 views

How to create custom filter type option for a custom field to extend the custom fields in Joomla?

I'm trying to figure out how to add/extend the "Filter" options for a Custom Field. I first started looking to see if I could figure out where I could add my own filter to the list of ...
seamonkey's user avatar
0 votes
0 answers
163 views

Adding Azuracast JSON file to my AM HTML5 AUDIO PRO PLAYER in joomla

I need help for a problem that i didn't found solution. we have a web radio created with joomla and we start to put our programs 24h/24. I bought an AM HTML5 AUDIO PRO PLAYER and everything work fine ...
Ahmed Boudraa's user avatar
3 votes
2 answers
112 views

What does it mean for a user to be 'logged in' to Joomla?

I am having an issue with the ACL of my Joomla API. I created this using the TechJoomla api component. I have the following code to handle post requests on my api. <?php use Joomla\CMS\...
Huw Evans's user avatar
  • 371
2 votes
1 answer
63 views

How to redirect in software after logout

I am seeking a way to trigger a redirect on user logout. One obvious way to do this seems liable to cause problems. The event of logout can be used to trigger a plugin using the event onUserLogout. It'...
mbrampton's user avatar
  • 314
1 vote
1 answer
65 views

How to add GET parameter to CSS filename in plugin JCH Optimize (Joomla)

I cannot find an answer to for several weeks. Perhaps my experience in development is not so great :) One site uses the JCH Optimize plugin and I noticed that after clearing the old memory (cache), ...
Arsen's user avatar
  • 111
0 votes
1 answer
142 views

How to customize Joomla registration form?

How to create proper override folder for com_user? Apparently, simply copying it to template/html folder doesn't work What is displayed on registration page is largely controlled by the .xml file, can ...
shenkwen's user avatar
  • 1,379
0 votes
1 answer
107 views

Can plugins listen to events in different groups?

I'm trying to trigger some actions for example when a content article is saved (using onContentAfterSave) or when a event from jEvents (https://www.jevents.net/) is saved (using onAfterSaveEvent). The ...
Exprove's user avatar
  • 123

1
2 3 4 5
9