Questions tagged [plugin]

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

64 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
3 votes
0 answers
182 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
2 votes
0 answers
72 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
  • 423
2 votes
0 answers
50 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
283 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
2 votes
0 answers
219 views

__PHP_Incomplete_Class when trying to access an object stored in session

I work on implementing single sign on with joomla and simplesamlphp. I try to use the simpleamlphp api in the context of a joomla plugin in the onAfterInitialise event. To that end, the plugin in ...
user615274's user avatar
2 votes
0 answers
166 views

FieldsPlugin onCustomFieldsPrepareDom $field on save different on front and backend

I currently develop a FieldPlugin for myself. I noticed some things and don't understand them fully right now. My plugin works in the backend perfect, but raises errors on the frontend, so I did some ...
svanschu's user avatar
  • 133
1 vote
1 answer
80 views

Trigger event inside custom plugin group

I have a custom plugin in a custom plugin group (maidan): <?xml version="1.0" encoding="utf-8"?> <extension version="3.1" type="plugin" group="...
maidan's user avatar
  • 423
1 vote
0 answers
21 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
1 vote
1 answer
21 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
  • 423
1 vote
1 answer
95 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
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
70 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
1 vote
0 answers
104 views

Loading own Composer Stack

I am working on Joomla 3.9.24 I want to globally load my own composer Stack which resides in JPATH_ROOT/vendor I tried it with a plugin that just includes the autoload and a file for starting some ...
Uther Pendragon's user avatar
1 vote
0 answers
63 views

Can you add a different mail option to Joomla e.g with a plugin?

I'm wanting to create a plugin to send e-mails using API methods (e.g. mailgun API or others) Is there a recommended way to do this? Can anyone point me at any good practice / hints & tips ? I'm ...
Kiran Cheema's user avatar
1 vote
0 answers
26 views

Joomla mkdir() error

I have a problem with the Virtuemart Color Swatch plugin for Joomla 3. When I add thumbnails to the product, in the admin panel, I get this error: Warning: mkdir(): No such file or directory in /var/...
user14521's user avatar
1 vote
0 answers
136 views

JCE plugin to add custom toolbar dropdown list

I am trying to add a dropdown menu in JCE editor. The dropdown will contain a list of items fetched from database. Please find the below code: (function () { tinymce.create('tinymce.plugins....
Liz.'s user avatar
  • 1,385
1 vote
0 answers
40 views

Getting user submitted product properties programmaticaly in j2store

So I'm developing j2store plugin to calculate price for item based on product's width and height (these values are entered by the user). The form is rendered as following: function ...
Mindaugas's user avatar
  • 157
1 vote
1 answer
436 views

how to route url - JRoute get wrong itemid and wrong sef url

Joomla 3.9.12, JoomGallery 3.4 I have a site with joomShopping for e-shop and JoomGallery for portfolio. The site has 2 menus where some menu items of the first are menu item aliases of the second. ...
Sergey Tolkachyov's user avatar
1 vote
0 answers
43 views

Adding an alias to the body class by appending it to the existing alias

I have successfully managed to add the alias to the body class by creating a plugin. It uses vanilla JS and isn't overly problematic except when I combine and compress my JS it stops working. I'm ...
Eoin's user avatar
  • 1,909
1 vote
1 answer
414 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::...
n.h.'s user avatar
  • 871
1 vote
0 answers
17 views

Desktop application for macOS to generate components, plugins and modules

I would like to know if there's a desktop application to easy generate components, plugins and modules for Joomla. I have tested this two generators: https://www.npmjs.com/package/generator-joomla3 ...
troyKoutei's user avatar
1 vote
0 answers
432 views

How to dynamically add extra input fields in k2 item form

Problem I'm currently working on a form which has to implement a way to create a schedule for a single day. It should use a time for when an event starts, and a description about the events. The ...
T.P's user avatar
  • 11
1 vote
0 answers
33 views

One to many contact history

I am wanting to add a history for the contacts component, essentially a history of them being contacted with a few other fields. I looked at seblod and it seems like a lot of overhead. I have written ...
poproar's user avatar
  • 333
1 vote
2 answers
295 views

Need to Change the Default URL on Mobile Joomla

As you can probably see in my previous queestions, I'm new to Joomla with less than a year's worth of experience. I'm looking to start building out Mobile pages - but a previous developer left me in a ...
kjkentner's user avatar
1 vote
0 answers
330 views

Why use ob_start and eval instead of using a simple include in this Joomla Plugin?

I was looking at the code of a Plugin for Joomla! CMS for a functionality I need: the possibility to run custom PHP scripts when a Joomla! Plugin/Events is fired. I wanted to learn the mechanism used ...
Gruber's user avatar
  • 302
1 vote
0 answers
43 views

How can I make the Botscout feature work in the EasyCalcCheck+ security plugin?

I'm using EasyCalcCheck+ to beef up security on a Joomla site. In general it works well, adding a random math question to contact forms and registration. ECC+ also has options that enable ...
boot13's user avatar
  • 131
1 vote
0 answers
58 views

How to use handler: 'string' in joomla modals

Im looking for some examples of how to use {handler: 'string' ...} for joomla modals, as used in editors-xtd buttons plugins $button->options = '{handler: 'iframe' ......}'; but I want to use: $...
Martin's user avatar
  • 11
1 vote
0 answers
434 views

reCaptcha 1.0 works but 2.0 won't?

I'm on Joomla 3.4.3, PHP 5.4.40 and using reCaptcha for the contact form. Whenever I use reCaptcha 1.0 everything works as intended. If I use reCaptcha 2.0 it's like this: I fill the contact form, ...
Borg777's user avatar
  • 157
1 vote
0 answers
244 views

Closing multiple modals in a Joomla Plugin

I am trying to call an image popup box for a flexicontent plugin in J3.4.1. The problem is - the insert & cancel don't seem to close the modal. Code: <div class="pull-right"> <button ...
iamrobert's user avatar
  • 505
1 vote
0 answers
128 views

Facebook like poke button

I'm new to writing Joomla plugins so bear with me. I wanted to create a poke like feature for the Joomla 1.5 Community Builder. When I click on the poke-button of a user, I want this user and only ...
thadeuszlay's user avatar
1 vote
1 answer
237 views

Redirect on extension plugin with onExtensionBeforeInstall

i've created an extension plugin and i'am having issue to redirect on the trigger onExtensionBeforeInstall Here is my code : class plgExtensionExample extends JPlugin{ function ...
remi leclercq's user avatar
0 votes
1 answer
22 views

How to integrate Nicepage site on Joomla

I am kinda new to this whole website thing. Definatly dont have much experiance in coding ect, but I have created a whole website with a nicepage paid subscription. I downloaded Joomla and XAMPP. I ...
Shelby's user avatar
  • 1
0 votes
2 answers
37 views

onContentAfterSave doesn't show custom fields

I created a plugin to send published articles data to external service class plgSystemVacancypub extends JPlugin { public function onContentAfterSave($context, $article, $isNew) { // Get ...
user3774771's user avatar
0 votes
1 answer
35 views

how can i override method save plugin joomla 4

I have custom plugin and I want to do something when my plugin save in admin panel of Joomla 4 . How can I override save method in plugin ?
سبحان مقیسه's user avatar
0 votes
0 answers
54 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
114 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
20 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
94 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
  • 423
0 votes
1 answer
36 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
0 votes
0 answers
36 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
0 votes
1 answer
82 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
0 votes
0 answers
20 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
129 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
0 votes
1 answer
46 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
0 votes
0 answers
188 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
0 votes
1 answer
168 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,389
0 votes
1 answer
79 views

Custom User plugin for the group

Looking for the info to have a custom User plugin but instead it shows up in the User, it needs to show up in the (User) group (backend Joomla Administrator). There is a very good example how to ...
PWRM's user avatar
  • 1
0 votes
0 answers
96 views

Set article attribs on-the-fly via JTable

I am using a CCK (Seblod) that extends com_content and allows adding complex fields, like PHP code to be run on onBeforeRender event. I need to change the values of some attribs of an article in the ...
Nene's user avatar
  • 1
0 votes
0 answers
48 views

Can I load my controller, model and view directly from the plugin?

I am trying to create a plugin that adds a new view to my component (addon). Can I load my controller, model and view directly from the plugin? For example: require_once("/pludins/myplugintype/...
MaXX's user avatar
  • 181
0 votes
1 answer
118 views

When exactly is onContentPrepareData triggered?

According to https://docs.joomla.org/Plugin/Events/Content, it is Called after the data for a JForm has been retrieved. It is not very clear when exactly the event is triggered. Based on the ...
shenkwen's user avatar
  • 1,389