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
14 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
34 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 ...
user avatar
  • 249
2 votes
1 answer
28 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....
user avatar
  • 57
1 vote
1 answer
51 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 ...
user avatar
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\...
user avatar
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&...
user avatar
  • 133
2 votes
1 answer
41 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 ...
user avatar
  • 31
1 vote
1 answer
31 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 ...
user avatar
  • 483
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) ...
user avatar
1 vote
1 answer
41 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 ...
user avatar
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 ...
user avatar
  • 111
1 vote
1 answer
125 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 &...
user avatar
  • 13
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? ...
user avatar
  • 1,829
0 votes
1 answer
41 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( '...
user avatar
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 ...
user avatar
  • 2,220
1 vote
1 answer
53 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 ...
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 ...
user avatar
1 vote
1 answer
39 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 ...
user avatar
  • 483
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 ...
user avatar
1 vote
1 answer
44 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 ...
user avatar
2 votes
0 answers
77 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 ...
user avatar
0 votes
0 answers
47 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 ...
user avatar
2 votes
2 answers
71 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\...
user avatar
  • 249
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'...
user avatar
  • 113
1 vote
1 answer
47 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), ...
user avatar
  • 111
0 votes
1 answer
47 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 ...
user avatar
  • 1,369
0 votes
1 answer
89 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 ...
user avatar
  • 123
0 votes
1 answer
64 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 ...
user avatar
  • 1
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 ...
user avatar
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. ...
user avatar
  • 249
3 votes
1 answer
76 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 ...
user avatar
  • 249
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 ...
user avatar
1 vote
1 answer
65 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 ...
user avatar
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 ...
user avatar
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 ...
user avatar
  • 1,829
0 votes
0 answers
85 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 ...
user avatar
  • 1
1 vote
0 answers
20 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/...
user avatar
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 ...
user avatar
  • 31
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/...
user avatar
  • 101
0 votes
1 answer
80 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 ...
user avatar
  • 1,369
0 votes
1 answer
161 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 ...
user avatar
  • 1
0 votes
0 answers
47 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 ...
user avatar
  • 213
1 vote
2 answers
165 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 ...
user avatar
  • 179
1 vote
1 answer
50 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: ...
user avatar
1 vote
1 answer
67 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 ...
user avatar
  • 325
0 votes
1 answer
112 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 ...
user avatar
  • 2,220
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 ...
user avatar
0 votes
0 answers
36 views

Load banner in Joomla article

Is there any plugin that can load banner "id x" from banner component? Or is there any other way, but not with {loadmoduleid x}? Thanks in advance
user avatar
  • 99
0 votes
1 answer
53 views

Installer cannot find language file, but it does exist

I regularly get an error similar to this: JInstaller: :Install: File does not exist /*******/public_html/dev/tmp/install_5e834b10a9f88/en-GB.plg_system_kou_address_mapper.ini Here is my XML <...
user avatar
  • 1,829
0 votes
0 answers
41 views

Which Event to include in User Plugin that fires on Save button in Plugin manager?

My user plugin, "Myplugin", works. I have extra parameters in the plugin that can be set in the Plugin Manager (Menu: Extensions / Plugins / MyPlugin). Those are stored in the database when using the ...
user avatar
  • 1

1
2 3 4 5
8