Questions tagged [plugin]
A plugin is a kind of Joomla! extension. Plugins provide functions which are associated with trigger events.
386
questions
0
votes
0
answers
21
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/
0
votes
0
answers
15
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 ...
1
vote
0
answers
11
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.
0
votes
1
answer
27
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
0
answers
36
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
33
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
54
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
65
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\...
0
votes
0
answers
19
views
Language pre-selection based on user group
Administrator area.
When user login, I need to preselect categories, articles and modules based on the user's main group.
Group EN
Group ES
Group IT
For each group you have specific "language&...
2
votes
1
answer
53
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 ...
1
vote
1
answer
46
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 ...
1
vote
1
answer
34
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) ...
1
vote
1
answer
49
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
0
answers
13
views
Globally filter modules (and articles) in backend
I added a lot of different user groups which are allowed to do specific things in the backend, e. g. group1 is allowed to edit some modules articles, group2 is allowed to edit other modules and ...
1
vote
1
answer
200
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
26
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? ...
0
votes
1
answer
42
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( '...
2
votes
1
answer
91
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
1
answer
54
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 ...
1
vote
1
answer
40
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 ...
0
votes
1
answer
42
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 ...
1
vote
1
answer
48
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 ...
2
votes
0
answers
84
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 ...
0
votes
0
answers
50
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 ...
2
votes
2
answers
73
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\...
2
votes
1
answer
31
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'...
1
vote
1
answer
48
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
48
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
95
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 ...
0
votes
1
answer
65
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
0
answers
66
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 ...
1
vote
1
answer
78
views
Techjoomla API using same ACL as site
First Context:
I am making a JS application that needs to call an api.
The application is a form full of multiple choice select elements. Depending on the selected elements data is sent to the api. ...
3
votes
1
answer
77
views
Techjoomla's API Module
I am trying to write a plugin to use Techjoomla's api component on my Joomla 3 site.
Their documentation gives sample code which I am altering to fit my needs. I am trying to make a very basic API ...
2
votes
1
answer
33
views
Problem with custom Joomla plugin (events usage)
I tried everything I could (yes, searching with google for a long time too) but I can't find what I am doing wrong here. I am trying to write Joomla plugin to change shortcode into list od adverts on ...
1
vote
1
answer
66
views
Save/load a custom form inside a new tab in the article edit view
I have a plugin which loads a custom form in a new tab inside the article edit view. So far, no problem with this part:
public function onContentPrepareForm(Form $form, $data)
{
// Check we are ...
1
vote
0
answers
41
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 ...
0
votes
1
answer
41
views
How can I place a module position in the midpoint of my content no matter what size
I want to put a call to action in the middle of my content no matter what size the content it.
I know I will need some JavaScript in order to calculate the word count and the mid point. And I know I ...
0
votes
0
answers
86
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 ...
1
vote
0
answers
21
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/...
3
votes
2
answers
168
views
Creating a plugin to insert a Chrome Trial Token
I am trying to create a plugin that will add the following in the of pages:
<meta http-equiv="origin-trial" content="MY_CHROME_TRIAL_TOKEN">
I assume this should be a ...
0
votes
0
answers
45
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/...
0
votes
1
answer
84
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
163
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 ...
0
votes
0
answers
48
views
Possible to add template file to component on plugin installation?
I am making a plugin for a custom component. It's a basic editor extend plugin that allows users to select an item from custom component using a button in editor. It's simular to native editor extend ...
1
vote
2
answers
168
views
Best way to clear a group's cache in Joomla via php, from an administrator plugin?
So background: I'm making a caching plugin that clears our site and CDN caches when content is saved in the administrator backend. In this instance, I want to clear the site cache for one group.
My ...
1
vote
1
answer
51
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
68
views
Overriding RssRenderer via plugin
I have some issues with overriding the RssRenderer found in /libraries/Src/Document/Renderer/Feed/RssRenderer.php. In the past I have used a plugin to override a select html see topic here:
Override ...
0
votes
1
answer
118
views
How to pass a JSON file from a Plugin to a Component?
My intended application is to provide a list of products in a simple Joomla list/table display with check boxes where the end user can click on one or more items, press the print button and the data ...
0
votes
1
answer
52
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 ...