Skip to main content

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
1 answer
7 views

DB Query with JOIN in Task Plugin

I'm calling the following query to retrieve records and the primary table data elements are all included, but the JOIN elements of data are not included. Any suggestions what I'm missing? private ...
1 vote
2 answers
88 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="...
0 votes
1 answer
21 views

How to set and use a global variable within a content plugin?

It's probably a duplicate. Anyhow, I am writing a J5 content plugin using onContentPrepare event. It turns out, that this plugin is called several times before the page is sent to the browser. I want ...
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 ...
0 votes
2 answers
95 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-...
0 votes
1 answer
273 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 ...
2 votes
1 answer
285 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 ...
0 votes
1 answer
68 views

How to add custom php in plugin settings?

I need to display iframe in plugin settings. Iframe will be have src="https://somepage.../<=$adminEmail?>/<=$domain?>". So i need to show iframe and pass parameters of admin login and page ...
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 ...
0 votes
2 answers
205 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: ...
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 ...
0 votes
1 answer
24 views

Joomla Custom Field Type Plugin No Translateable Label

In my Project I create a Custom Field Type Plugin (my own Customfield Type) - I'm using the new Structure with namespaces but on the "Field Selection" There is no translateable label. Its ...
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. ...
0 votes
3 answers
59 views

Is it possible to point Joomla to use a plugin hosted on a different server?

Simply put, I'm using a plugin that I'd like to host on a different server from the one my site is on. I'd like to point joomla to the plugin content stored on that other server, not in the plugin ...
0 votes
1 answer
147 views

Can't get ARK editor to replace Tiny Editor

I have Joomla 3.5 on Windows pro 7. I went and downloaded Ark Editor. Extention Manager says it is successfully installed. Go to global configurations to activate, but is not showning in drop down ...
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 ...
0 votes
1 answer
854 views

VM - custom payment plugin and payment methods do not work

I can't make my VM payment plugin to work at joomla v3.5.0 and virtuemart v3.0.12. I've install a custom payment plugin. Initially it worked, yet the same time other payment methods (when invoked) ...
0 votes
1 answer
80 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 ...
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 ...
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 ...
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::...
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 ?
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 ...
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 ...
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 ...
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 ...
0 votes
1 answer
115 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 ...
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), ...
0 votes
0 answers
56 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 ...
0 votes
3 answers
119 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 ...
0 votes
2 answers
223 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\...
1 vote
1 answer
127 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 ...
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 ...
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 ...
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=...
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 ...
1 vote
1 answer
84 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 ...
1 vote
2 answers
329 views

Joomla plugin - replace placeholders with dynamic content in article text

Based on the this tutorial https://docs.joomla.org/J3.x:Creating_a_content_plugin, I managed to write my first content plugin with this helper.php code: $regex_cat = '/{reillorama:(.*?)}/i'; ...
0 votes
1 answer
64 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\...
1 vote
2 answers
133 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. ...
3 votes
2 answers
254 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('...
3 votes
1 answer
80 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\...
1 vote
2 answers
162 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 ...
2 votes
1 answer
2k 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
2 answers
327 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 ...
2 votes
1 answer
141 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 ...
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 ...
1 vote
1 answer
37 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 ...
0 votes
0 answers
130 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/
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 ...

1
2 3 4 5
9