Stack Exchange Network

Stack Exchange network consists of 174 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
0answers
20 views

Joomla plugin for article social share on anchor tag click trigger

Is there any free Joomla plugin which for article share on social site. I don't want to show all the social links on article page directly. There will be a anchor tag such as "Share". By clicking on ...
1
vote
2answers
38 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 ...
0
votes
1answer
24 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 * @...
0
votes
0answers
10 views

Prevent disabling/uninstalling single component from package

I have a package extension with 3 plugins and one library. All plugins depend on this library. User can go to extension manager and disable only the library which will prevent all plugins to work ...
1
vote
1answer
20 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
21 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
2answers
27 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, ...
3
votes
1answer
34 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 ...
0
votes
1answer
33 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 ...
0
votes
1answer
31 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
16 views

Plugin description translation

I have problem with plugin description translation. After first install the description is not translated. After second install (without uninstalling) the description is translated. Where is problem?
0
votes
0answers
19 views

Plugin beling loaded in articles but also categories where it should not be

I'm not sure if I should ask this here, being that it's someone else's (free) code, but here goes in case I can. (j3.8.8) The following code is part of a plugin which displays joomla vote data in ...
0
votes
0answers
12 views

Get Status Code in Plugin (onAfterRender)

I have written a simple StaticCache Plugin, which saves $this->app->getBody() as a HTML file and redirects to this file via .htaccess. My Problem now is that it caches the 404 site as index....
0
votes
1answer
17 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 ...
0
votes
0answers
29 views

Plugins update failed

I'm newbie to Joomla. I would like to update plugins on my localhost before I upgrade Joomla core, but don't know how to fix these errors/warnings/messages:- Invalid extension update Update path does ...
0
votes
1answer
30 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! ...
0
votes
1answer
23 views

How can I make it pssible for users to login and add their products?

I want to build a form for the users of my website to let them easily add their products in frontend page under the name of their shop. To this end, which plug-in, component, or extension ...
0
votes
2answers
283 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 ...
4
votes
1answer
46 views

onUserAfterLogin popup - Joomla 3.6.4 Plugin

I need to create a plugin that displays a popup when an user makes a log in on my Joomla 3.6.4 website. I know that I need to create a Plugin and trigger the onUserAfterLogin event, but I don't know ...
1
vote
1answer
62 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
58 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
0answers
44 views

Custom Joomla plugin to catch specific database queries

Is it possible to make a plugin which will get triggered by specific database events in Joomla? I need to watch the $this->getTable() request in Joomla. For eg: $table = $this->getTable(); if (...
1
vote
1answer
22 views

How does plugins return value (boolean) affects other plugin in terms of execution?

How does the return value true or false affects other plugins of the same group? Does it prevent other plugins from executing when returning false?
0
votes
1answer
111 views

Custom fields don't render plugin shortcode

I am using custom fields introduced in Joomla 3.7 as a way to structure articles in my Joomla 3.8.3. installation. One of my custom fields contains shortcode to be rendered by another plugin. But all ...
1
vote
1answer
41 views

search component/plugin in joomla

I am new to joomla! and would like to design a custom search plugin to search through my database. I know that when using the default search, the onContentSearch() function is triggered and "search ...
1
vote
1answer
83 views

Joomla onExtensionAfterSave event

I am developing a component extension to create different forms for insurance. When I create a form in backend and save it by clicking the Save or Save & Close button, I am going to create a ...
2
votes
1answer
20 views

How to force an administration field be filled-in or plugin won't be enabled?

I have a Joomla plugin I wrote. There is a field for the Joomla Administrator to fill-in, it can't be left blank and there is no good default value to put in there. How can I force it that the plugin ...
1
vote
2answers
111 views

How do I pass the field value for a plugin into the myplugin.php itself?

I have a simple Joomla plugin I wrote and added a field to the .xml manifest: <config> <fields name="params"> <fieldset name="basic"> <field ...
2
votes
1answer
55 views

Parse code for plugin call in $row->text of Joomla article?

I'm writing a Joomla plugin where I want it to look through the Joomla Articles (and modules) for this: {myplugin} partno=12345678 {/myplugin} and change {myplugin} partno=12345678 {/myplugin} to a ...
0
votes
0answers
62 views

Plugin “Hello World!” for User onUserAuthorisation

I am trying to create a plugin to make some database queries from the event onUserAuthorisation. Right now I am just trying to set up a "Hello World" style plugin, because I am not sure yet that my ...
0
votes
1answer
87 views

article view - com_content not triggering content plugins when article is split

I've created a template override for the article view where the intro and the full text are invoked separately. So, instead of <div itemprop="articleBody"> <?php echo $this->item-...
2
votes
1answer
181 views

Creating a Component menu item via a Plugin

I've been reading over Joomla development documentation for awhile, but haven't picked up as much as I would like. What I'm trying to accomplish seems very simple on the surface, but navigating the ...
1
vote
0answers
13 views

Desktop application for macOS to generate components, plugins and modules

I would like to know if there's a desktop application to easy generate components, plugins and modules for Joomla. I have tested this two generators: https://www.npmjs.com/package/generator-joomla3 ...
1
vote
0answers
432 views

Subform inside modal [closed]

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 ...
0
votes
2answers
30 views

Joomla learning extension

I am looking for an independent platform, or an "extension" for joomla, that has or allows to develop the following characteristics: Role 'Student' - This has a personal page where you will be ...
1
vote
1answer
118 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 ...
4
votes
1answer
251 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 ...
1
vote
1answer
59 views

How to control the execution order of the same event?

I would like to know if it's possible to control the order of the execution of the same event in several plugins. For example, I have the event event1 in 2 plugins, and I want the plugin1 execute the ...
1
vote
0answers
213 views

How to dynamically add extra input fields in k2 item form

Problem I'm currently working on a form which has to implement a way to create a schedule for a single day. It should use a time for when an event starts, and a description about the events. The ...
3
votes
1answer
48 views

Retrieve JCH CSS file from outside Joomla?

JCH outputs the combined and compressed CSS file as: /media/plg_jchoptimize/assets/gz/1/0/21258391ff538dceaca26d18cb55cb1b.css Since this is a randomly generated link every time JCH refreshes the ...
1
vote
1answer
29 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 ...
1
vote
1answer
103 views

Redirect on extension plugin with onExtensionBeforeInstall

i've created an extension plugin and i'am having issue to redirect on the trigger onExtensionBeforeInstall Here is my code : class plgExtensionExample extends JPlugin{ function ...
2
votes
2answers
36 views

How class work without make instance of it in joomla?

In Joomla when we develop an extension we make some class that extends another class like JModule or JPlugin and we have to use the naming convention for name it for example when we make a plugin we ...
1
vote
1answer
326 views

renderField with fields from custom plugin

I need to expand the functionality of the registration form. Following some tutorials and the sample profile plugin I was able to use the onContentPrepareForm to add the new fields. Now the second ...
1
vote
2answers
370 views

Joomla 3.7 change value in database after form button press

I want to do something really simple, but have to use Joomla what makes it probably complicated because I have less experience in Joomla development. I have field with a value (a number) which is ...
4
votes
1answer
322 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 ...
3
votes
2answers
143 views

Adding custom fields to core components based on category

I created a plugin to add custom fields to the joomla com_content core. I add the fields to the backend and frontend. Now the new tab is shown on every post but i want to show the tab and the fields ...
0
votes
1answer
106 views

Translate custom messages

I have a system plugin that will let a user set and display some custom messages to users. As those messages are not available in a language file (are not static strings) how can I be able to allow ...
0
votes
1answer
78 views

How to remove rel=“nofollow” with Joomla Buffer?

I am developing a plugin to get rid of any rel="nofollow" on HTML links using a buffer, but its not working. I am testing it with a nofollow link on a Custom HTML Module. I thought that "JFactory::...
0
votes
1answer
94 views

Joomla plugin - get parameters from syntax

based on the this tutorial https://docs.joomla.org/J3.x:Creating_a_content_plugin I managed to write my first content plugin with this helper.php code $regex_cat = '/{reillorama:(.*?)}/i'; ...