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
2answers
82 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
24 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
27 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
37 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
33 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
30 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
19 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
27 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
84 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
64 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
28 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 ...
0
votes
0answers
16 views

Export result of a List & Search List view

I am using a Seblod List & Search with a custom query, that has Inputs like name and Id, and displays the result of that query (the fields) using a joomla table. I need to export the resultant ...
1
vote
0answers
45 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
0answers
35 views

Displaying Videos in Responsive Slider

Joomla 3.9.13 I've been searching for a way to display Youtube videos on my site, in a responsive slider. I wasn't able to find a suitable plugin or component so I had thought about creating one ...
0
votes
2answers
48 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
90 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
34 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
18 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
52 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
33 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 ...
1
vote
1answer
236 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
58 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
88 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
55 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
59 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 ...
0
votes
2answers
40 views

How do create an update for your existing Joomla plugin I've written?

I've written a simple Joomla plugin that I've been using for a year. I want to write an update for it. It would change what is in the .xml file and some code in the .php file. How do I go about ...
0
votes
1answer
37 views

How to add a field to com_content in the backend?

I'm confused about this. I want to add a field to the com_content core component that needs to show up under the "Title" field in the administrator backend when you edit an article and of course to be ...
0
votes
3answers
59 views

Limiting onContentAfterSave to one result

First of all, I'm quite new to creating my own modules and plugins (and very much in learning stages!) and I find the help here excellent and very inspirational - thank you. I'm trying to create a ...
0
votes
0answers
31 views

Use a Field value in a Query (Seblod Query plugin)

I'm using the Query plugin that lets me create a Query field on my List & Search. I have a hidden field with ID 'id_number' which I'm trying to use in my query. When I check the Page Source(Ctrl+...
2
votes
0answers
58 views

__PHP_Incomplete_Class when trying to access an object stored in session

I work on implementing single sign on with joomla and simplesamlphp. I try to use the simpleamlphp api in the context of a joomla plugin in the onAfterInitialise event. To that end, the plugin in ...
1
vote
1answer
19 views

No Documentation about onCustomEditorButton

I want to add a custom button to the TinyMCE editor. But the documentation about this feature is non-existsten as you can see here: https://docs.joomla.org/Plugin/Events/Editor#onCustomEditorButton ...
2
votes
1answer
62 views

Override JHtml (HTMLHelper) class methods

I'm developing a custom Joomla template and have unset a lot of the core dependencies, such as jQuery and Bootstrap in the template's index.php. The problem now is that the core extensions call some ...
3
votes
1answer
71 views

Content plugin doesn't add text to articles

I have the following plugin written: defined( '_JEXEC' ) or die( 'Restricted access' ); jimport( 'joomla.plugin.plugin' ); class plgContentModifyArticle extends JPlugin { function ...
1
vote
0answers
30 views

Adding an alias to the body class by appending it to the existing alias

I have successfully managed to add the alias to the body class by creating a plugin. It uses vanilla JS and isn't overly problematic except when I combine and compress my JS it stops working. I'm ...
1
vote
0answers
61 views

FieldsPlugin onCustomFieldsPrepareDom $field on save different on front and backend

I currently develop a FieldPlugin for myself. I noticed some things and don't understand them fully right now. My plugin works in the backend perfect, but raises errors on the frontend, so I did some ...
1
vote
2answers
46 views

How to add the alias to the body in a plugin

I am trying to use JavaScript to add a class to the body which is the same as the current menu items alias. I have echoed $prefix and it is correct. So I know that part works. I have dumped the ...
1
vote
1answer
137 views

Updating JEventDispatcher triggers

Can anyone explain or point me to information on the new way to handle events in Joomla 4? I'm updating a component that uses triggers to display plugins, and it looks like this: $dispatcher = ...
3
votes
1answer
35 views

Why is my plugin not hooking into events?

I have a plugin that looks like this: class plgExtensionLogInstall extends JPlugin { function onExtensionAfterInstall($installer, $extensionId) { JLog::add("Extension installed: ".$...
3
votes
0answers
190 views

Joomla and Eventbrite Integration

I am looking for a way to integrate Eventbrite with Joomla. I want to show a list of upcoming events that I have created. There are a number of default widgets available with Eventbrite (copy / paste ...
1
vote
1answer
17 views

What is the best approach to implementing a component that responds to events?

I am working on a Component that will add a set of administrative functionality, which I am fairly confident in, but part of its behaviour will rely on code being triggered by events, which seems to ...
0
votes
2answers
45 views

How to change the site language by country IP

I try create system plugin for auto change language by IP. I don't have idea how to correctly write code so as not to receive an infinite loop of redirection requests. My code class ...
-1
votes
1answer
105 views

Simple plugin to check folder contents on component update

I'm wanting to make a very simple plugin. All it needs to do is On installation of the plugin, copy a folder to a particular component's library folder. When a particular component library is ...
1
vote
1answer
196 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
1answer
86 views

How to adjust search keyword sanitization settings as language override?

I am working on some custom search plugins and I have a 2-part question regarding the file administrator/components/com_search/helpers/search.php. I want to adjust the sanitization settings without ...
3
votes
1answer
51 views

Where are plugins found in Joomla 4?

I'm working with the Joomla 4 alpha 7, and I don't see anywhere to enable / disable plugins. Are plugins not enabled yet? [edited to add alpha, not beta!]
0
votes
1answer
92 views

Any way to redirect (301) pages for unpublished articles/links (404)?

I am wondering if where is any way in joomla to solve following issue: I am having URLs (articles) which may have been externally linked Now I want to disable this links (unpublish) but if I ...
2
votes
2answers
387 views

Using external PHP library and defined('_JEXEC') or die;

I want to use hatemile-for-php library (https://github.com/hatemile/hatemile-for-php) in my plugin. As I am only ever using this library within this one plugin, I included it in the plugin folder ...
2
votes
1answer
456 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
1answer
65 views

How to check by onContentAfterSave it is a article?

I have follow code for after save: public function onContentAfterSave ($context, $article, $isNew) { $article = JModelLegacy::getInstance('Article', 'ContentModel')->getItem(); .... } It works ...
0
votes
1answer
109 views

roksprocket disable article tags

I am using roksprocket as a simple to use filter system of articles. Sadly I could not find a way to disable the badly looking tags underneath the modules itself. Of course there is a possible to use ...

1
2 3 4 5
7