Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [plugin]

A plugin is a kind of Joomla! extension. Plugins provide functions which are associated with trigger events.

0
votes
1answer
46 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 ...
3
votes
2answers
66 views

How properly save foreign characters in plug-in config parameters

I am developing a Joomla! authentication plugin and have a standard Joomla! install (J3.9.1) with PHP 7.2 and MySQL 5.6.29. My plugin has config parameters that are accessible via the backend. One of ...
1
vote
1answer
61 views

Installing Language Filter and Language Code system plugins

I have a Joomla website (which I didn't install myself) that seems to be lacking the system plugins "Language Filter" and "Language Code". It seems like it wasn't installed as a multi-language site in ...
4
votes
1answer
377 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 ...
0
votes
1answer
65 views

Own field type in subform, using with content plugin

for curiosity: I'm using this method to add fields to the standard articles: https://docs.joomla.org/Adding_custom_fields_to_core_components_using_a_plugin/de I have to use this, since the fields-...
0
votes
1answer
109 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 ...
5
votes
1answer
96 views

onFinderCategoryChangeState event for com_finder in Joomla never fires

I am implementing a plugin for jdownloads to be used in the component smart search. To implement this plugin I have to use the event onFinderCategoryChangeState to actualize the state to the download ...
1
vote
1answer
207 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
1answer
597 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) ...
1
vote
1answer
132 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::...
0
votes
1answer
36 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 ...
4
votes
2answers
293 views

Core Component Layout Override with Plugin

Within a plugin I need to add and populate (data is available inside my plugin) a column to com_menus&view=menus view in administration. my_plugin.php ... public function onAfterInitialise() { ...
-1
votes
1answer
103 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 ...
4
votes
1answer
505 views

Article Table of Content as a sticky navigation

I'm looking for a way (plugin, module?) to achieve the following: auto-generate a Table of Content for certain long Joomla articles based on HTML tags (H1,H2 etc.) or CSS classes of headings show ...
2
votes
1answer
65 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 ...
2
votes
2answers
130 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 ...
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!]
1
vote
2answers
185 views

Installer Script - Copying files from installer temporary directory to joomla site

I am creating a Joomla package that will install some plugins and some image files together. I want to copy the images from the package to the Joomla site using an installer script. How do I find the ...
2
votes
1answer
53 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 ...
0
votes
1answer
71 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
vote
1answer
476 views

Subform inside modal

I am using subform form field type inside my plugin parameters (I am reusing a form in several places of my plugin parameters, with success). What I really need to manage is to use each subform ...
2
votes
1answer
32 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
31 views

Add a message after saving an article

Based on this question:. https://joomla.stackexchange.com/a/24042/8968 I want to add the return code as a message after save to see if it was successful or not. Can someone tell how I can do this?...
0
votes
2answers
454 views

onUserAfterSave called twice because of addUserToGroup

The process of registration is taking way too long (22 secs) so I've been profiling the plugin execution to see what is happening. My registration process is something I do with a custom component (...
1
vote
3answers
38 views

Develop a System Plugin with Sample Data for Options

I'm in the process of developing a system plugin. In the options is a subform-field (repetable), which contains several fields. In the "default" of the subform I can specify a record. a) How can I ...
1
vote
1answer
56 views

onAfterRender plugin issue

Both the PHP and the JS is tested and works in a module. But there's really no need for a module this is a plugin. I'm quite new to this so I thought onAfterRender would work, but nothing seems to ...
6
votes
4answers
1k views

Script not running on plugin installation

I am creating a plugin and am attempting to run a script after it is installed. For whatever reason, it appears the script file is loading, but my code is never run. My script.php file contains the ...
3
votes
1answer
140 views

How to make my Editor plugin (type: editors-xtd) survive after updates?

I have a project that I am writing a component, module, and editor plugin for. I have managed to piece together a rudimentary plugin that works with TinyMCE (at least) which: Displays a custom ...
4
votes
1answer
74 views

Custom message after plugin installation

After an installation process, the translated manifest description from the sys.ini-file is shown in the Extension Manager. Unfortunately this text is also shown while editing the (published) plugin ...
1
vote
1answer
89 views

Joomla! extension/plugin for creating productbundles in an onlineshop

We looked up for a solution to create a product bundle in the frontend of our webshop. Yet we haven't found any solution that enables the User to "create a product bundle". Currently we are using the ...
0
votes
4answers
2k views

About jquery and $document->addScriptDeclaration($js) by developing a plugin

I seem to be having an issue when using jQuery in my plugin, which results in a blank page. When I delete the last line $document->addScriptDeclaration($js);, the site display but the code doesn't ...
3
votes
2answers
385 views

How to replace the content of Div for plugin

I'm writing a plugin for Virtuemart its System type plugin. In their older version (VM2.x) they managed the Div simply with a class and there is no inside Div structure so preg_replace is sufficient ...
4
votes
1answer
449 views

How to save data from subform fieldtype in joomla 3.7 custom field

I made a subform repeatable fieldtype custom field plugin to integrate with the custom field extension in 3.7x, and it works correctly to display the the fields during article submission. However, the ...
2
votes
1answer
83 views

Set plugin order when installing

During plugin installation, is it possible to set it to be always the last one in its group? Thanks
1
vote
2answers
60 views

Avoid login from onUserAuthenticate

I'm trying to dismiss the login if my $completed var is false. I can make it work with die() but I wan't to know how to do this correct, so that the user gets returned to the login page with a error ...
1
vote
1answer
104 views

Virtuemart payment plugin override

I'm trying to override the "vmpayment" plugin. I've changed the layout of the "post_payment.php" file and put the file in the following folder structure: templates/mytemplate/html/...
0
votes
1answer
28 views

How can I display a message based upon the value of a config item

I'm trying to show a warning based on robots being set to noindex or nofollow. I've copied the PHP Version quickicons plugin. Here's my php file. <?php /** * @package Joomla.Plugin * @...
1
vote
1answer
38 views

How to use “onUserAfterLogin” Event?

I want my users to get an email when they login for the first time. I am thinking to create an array to store userids that have logged in before. When users login, compare their userid with the array, ...
1
vote
1answer
28 views

How does Joomla initialise all active libraries and plugins?

I'm trying to import Joomla in a Yii application. It goes well, but some plugins and libraries are not loaded. Does anyone know how to achieve this? Something like JPluginHelper::loadAllActivePlugins(...
1
vote
1answer
102 views

Shortcut to insert non breaking space in TinyMCE?

I'm using Joomla and it's integrated TinyMCE editor. I would like to use a shortcut like shift+space or ctrl+shift+space to insert a non breaking space fast and simple instead of to have to click a ...
1
vote
1answer
165 views

Second dropdown changes after selecting first dropdown in Joomla XML

I am creating these dropdown lists in XML for plugin: category multi-select dropdown, subcategory multi-select dropdown (All data comes from database table) I want when I select the first category ...
1
vote
2answers
39 views

What are the differences of Joomla modules vs components vs plugins?

A very basic question probably... But what are the differences in Joomla terms between: module components plugins If I am a developer for Joomla what and why should I name it a module, component, ...
1
vote
1answer
256 views

JForm::addFormPath to load Template path

I Have a plugin and I have the Following code working fine: if ($this->params->get('thepath') == 'plugins'){ JForm::addFormPath(JPATH_PLUGINS.'/system/add_xml_fields/'); } I ...
0
votes
2answers
803 views

Multiple primary key defined error when installing Jomestate plugin

I have Joomla 3.8.5 stable version. The code I am tring to execute is: Pastebin SQL code (I am tring to install the JOMESTATE plugin) I get the following error: JInstaller: :Install: Error SQL ...
3
votes
1answer
88 views

Caching items with different cache lifetime

I'm looking into using Joomla's caching mechanism for a plugin. However I would need to cache the plugin data for a given period of time irrespective of the site-wide cache settings. Is it possible ...
1
vote
1answer
30 views

onAfterModuleList not triggered in Home or in Wrapper menu type?

I got a plugin that uses the onAfterModuleList event, it works fine on most menu types. But it doesn't seem to be triggered in neither home or wrapper menu types. Event though there are modules ...
0
votes
1answer
81 views

How can I programmatically install a plugin?

How could you do programmatically what Joomla does when you install a plugin? Let's say, for simplicity's sake, that you have a plugin package file local with your Joomla instance. A solution might ...
1
vote
1answer
26 views

How to execute custom php/mysql code after a user successfully logs in?

After a user logs in, I want to call a little mysql program. How and where (in what module eg. mod_login) do I place the code?
2
votes
2answers
105 views

How to tweak a plugin so it will load below the author?

I use an override of com_content/views/article/tmpl/default.php to display the author name below the article text: <div itemprop="articleBody"> <?php echo $this->item->text;?> <?...
0
votes
1answer
49 views

Including Results from API Call in Joomla! Search Results

My organization uses Joomla! for its customer facing site. There is a database that I only have REST API access to. I'm trying to ping that API to include results from it alongside the normal Joomla! ...