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
1
vote
1answer
27 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
1answer
36 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
1answer
34 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
0answers
37 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
0answers
21 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
2answers
42 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
1answer
21 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
1answer
36 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
1answer
29 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
1answer
66 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
1answer
52 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
0answers
55 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
1answer
70 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
1answer
69 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
1answer
25 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 ...
0
votes
0answers
34 views

Add a packet with composer

I have seen Joomla has composer build in -in the core- under /libraries/vendor. Now I want to implement AMP Optimizer with composer for modifying the html output. Is it possible, and how to add this ...
0
votes
0answers
8 views

confirm dialog, on New Custom Field creation

I am in the process of creating a new type of Custom Field. (Joomla 3.9x) As a new Field under Plugin. I need to have a confirm-dialog on beforeSave, but I can't find any proper tutorial on how to do ...
1
vote
1answer
54 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
0answers
32 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
1answer
40 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
0answers
81 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
0answers
13 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
2answers
81 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
0answers
40 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
1answer
60 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
0answers
106 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
0answers
46 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
2answers
129 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 ...
0
votes
1answer
39 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
1answer
54 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
1answer
69 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
1answer
42 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
0answers
33 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
0
votes
1answer
25 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 <...
0
votes
0answers
33 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 ...
1
vote
3answers
245 views

How to add the current user's user id in query of a custom field for a plugin?

If I hardwire a created_by clause in a joomla sql custom field, the query works as it should (for this specific userid the clause is, and created_by = 305): SELECT id AS value, title AS text FROM #...
1
vote
2answers
98 views

Override JHtml core function select.radiolist

I want to override the output of the select radiolist. I can hack the core, but I'm not really fond of doing that in relation to updates. So i checked out a system plugin to override the JHTMLselect ...
0
votes
1answer
54 views

Render field in backend record form from plugin xml file

I'm building a component with payment plugins and I need to display the plugins fields in the account form record. The plugin xml fields section is <fields name="params"> <fieldset ...
1
vote
0answers
82 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....
0
votes
2answers
140 views

sending post data in a plugin

When copying a webpage to my Joomla site, there is a big hassle which is dealing with images. We can easily copy text content and its format but we will have to download the images on the webpage, ...
0
votes
1answer
178 views

jimport('joomla.plugin.plugin') - When do I need this when making plugin?

To be honest, I don't know what jimport and jimport('joomla.plugin.plugin') do. So I think an explanation of what they do might as well answer my question. That being said, I've made a simple plugin ...
1
vote
1answer
74 views

What is the different between JPlugin and \Joomla\CMS\Plugin\CMSPlugin

I was learning plugin development when I came across this. so for some plugin, I see class pluginA extends JPlugin for some others, I see class plgGantryEasyblog extends \Joomla\CMS\Plugin\...
1
vote
0answers
27 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 ...
1
vote
1answer
93 views

How to update database module params

Could someone kindly help please? I'm creating a plugin and part of its job is to automatically add a 'Menu Class Suffix' to a chosen menu. I know it can be done manually from the advanced tab of ...
0
votes
1answer
45 views

How to add an error message when returning false in the onContentBeforeSave event?

I work in a functionality in which I must validate some fields before saving, if a condition is not met I must indicate abort the save process, according to the documentation of the ...
2
votes
1answer
502 views

How to programmatically set the value of a custom field of type checkbox?

In articles, I have created a series of custom fields, including two date fields and a checkboxes field. Now, through a plugin in the onContentBeforeSave event I need to verify that if date 1 is less ...
2
votes
1answer
123 views

Transfer Custom Code to Module / Plugin / Component

Joomla 3.9.12 I've been using Sourcerer in order to place custom code throughout my site, it's working well so far. I've created a custom html module, within this I have added PHP, JS, HTML and CSS. ...
1
vote
1answer
258 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. ...
3
votes
1answer
148 views

Joomla4 plugin getBody

In Joomla 3.x versions I use JResponse to get and set the body. function onAfterRender() { $content = JResponse::getBody(); ... } But in Joomla4 it returns Class 'JResponse' ...
0
votes
0answers
147 views

Install from web tab fails installation

Install from Web tab initially returned a blank page in both Firefox and Chrome. I disabled then uninstalled plugin. When I click on "Add Install from Web" button, I get the following: Error ...

1
2 3 4 5
8