Questions tagged [plugin]
A plugin is a kind of Joomla! extension. Plugins provide functions which are associated with trigger events.
398
questions
2
votes
0
answers
54
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
14
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 ...
0
votes
1
answer
99
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 ...
1
vote
1
answer
31
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
273
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';
...
1
vote
1
answer
13
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 ...
1
vote
1
answer
62
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
1
answer
33
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
289
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
1
answer
258
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
155
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
63
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
106
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 ...
1
vote
1
answer
403
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
1
answer
141
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 ...
1
vote
2
answers
84
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.
...
0
votes
1
answer
31
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 ...
2
votes
2
answers
105
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('...
0
votes
1
answer
831
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
74
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 ...
1
vote
1
answer
391
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
1
answer
52
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
1
answer
78
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 ...
0
votes
1
answer
49
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 ...
1
vote
2
answers
86
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
145
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
60
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
17
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
31
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
20
views
OnContentPrepareForm load xml based on article data
I'm trying to figure out how to conditionally load extra form fields into articles. I have made succesfully a plugin that add fields:
function onContentPrepareForm($form, $data)
{
$app =...
0
votes
0
answers
81
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/
1
vote
0
answers
15
views
Sketch / Drawing extension for Joomla!
I'm looking for a plugin for Joomla! where guests can leave paintings.
Just something simple like Microsoft Paint.
2
votes
0
answers
44
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 ...
2
votes
1
answer
81
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....
1
vote
1
answer
90
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 ...
0
votes
1
answer
91
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\...
1
vote
1
answer
198
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 ...
0
votes
1
answer
184
views
Joomla custom SSO plugin
I need to create a custom SSO plugin. The way it should work is:
User authenticates on 3rd party application
3rd party application calls a Joomla URL via POST request
The URL that has been hit deals ...
1
vote
1
answer
56
views
Upgrading an Old Joomla 2.5 Site to 3.x Version
I have an old Joomla 2.5 site and am trying to upgrade it to the current version. My problem is I need to update some items but I'm not finding the old versions of them for doing that. They are:
...
1
vote
1
answer
49
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) ...
0
votes
1
answer
30
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? ...
5
votes
2
answers
532
views
How to customize user registration in Joomla 3.7?
Now that Joomla 3.7 supports custom fields, can anyone point me to documentation or a YouTube video that outlines how to customize user registration? I assume that additional work is also required to ...
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 &...
0
votes
1
answer
67
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( '...
0
votes
2
answers
246
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
1
answer
95
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 ...
1
vote
2
answers
2k
views
Any “Link Preview” (like the facebook feature) in joomla editor?
I'm writing articles commenting diverse sources from the web (youtube video/news articles, blogs...).
To show which article I'm commenting I'm using an image (thumbnail + some text). So my article ...
1
vote
1
answer
79
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 ...
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 ...