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
215 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
154 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
105 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
35 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?
1
vote
1answer
401 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
75 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
2answers
360 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
394 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
92 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
137 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
2answers
200 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
515 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
17 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 ...
3
votes
1answer
525 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 ...
0
votes
2answers
38 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
221 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 ...
5
votes
1answer
502 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
80 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
398 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 ...
2
votes
1answer
80 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
44 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
222 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
48 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
1k 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
651 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
757 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
293 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
244 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
157 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::...
1
vote
1answer
148 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'; ...
4
votes
1answer
739 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
3k views

How to show previous/next buttons in my articles?

I'm using helix3. my website is 1PSD.net. how to put a button "next" in bottom my pages?like this picture? I mean, not button "READ MORE". I want multiple pages similar the left ...
2
votes
2answers
275 views

How can I ensure a plugin update is compatible with my current Joomla installation?

I'm new to Joomla, so please forgive me if this is obvious. I have done some searching and I am competent with Wordpress so I'm hoping it's not! I'm currently running 3.4.8 and when updating certain ...
1
vote
1answer
225 views

Adding fields to user group admin form

I am trying to write a Joomla plugin to add fields to the user group admin form. I have previously written plugins that have added a new tab to the user form. This is possible by having a plugin with ...
0
votes
1answer
130 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 ...
2
votes
1answer
251 views

Is there an event for saving a menu item?

I'm trying to create a plugin that fires when a menu item is saved, but I'm having trouble finding an event to listen to. Sor far I have function onContentAfterSave() { ...
0
votes
1answer
264 views

Validate plugin data before saving successfully

I am developing a plugin. I have one textbox. When I give some value in the textbox and click on "Save" button, the value of the textbox should be validated by sending a curl request. If it is not a ...
1
vote
1answer
310 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
3answers
273 views

How to remove specific articles from blog view using a plugin custom code. Its possible? How?

I would like to prevent some specific articles from being shown on com_content blog view and featured articles view. For example, if the article has a specific ID that I seted on code like "27" he ...
1
vote
1answer
54 views

Logout within plugin interfering with other plugins

I have a user plugin which performs some tasks and then logs the user out using $app->logout($userID, []);. This is intentional and part of the plugin's functionality, and works well if no other ...
2
votes
1answer
100 views

Change 'Help' button url inside plugin

Is it possible to change the 'help' button url inside a plugin (that I am developing) to get the documentation from my site? I managed to add not replace, with JToolbarHelper::help()
1
vote
3answers
1k views

I need extension to create popup

I'd like some advice. which extension is recommended for anyone needing to open an html page in a pop-up after clicking on an image?
2
votes
2answers
329 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 ...
1
vote
1answer
345 views

How to change JoomShopping URLs?

I have added several JoomShopping categories with respective pages. However, they have long URLs: http://ysadba.kiev.ua/component/jshopping/CATEGORY/PRODUCT.html?Itemid=0 I'd like them to look like ...
2
votes
3answers
2k views

Language files in a plugin

I'm writing a plugin that needs some translatable strings at runtime, but I'm having trouble getting my language file to be picked up. I've got the following: /language/en-GB/en-GB....
1
vote
2answers
431 views

Use plugin code in overrides content template

Im trying to make a page which uses plugin code of Simple Image Gallery to load the images in that are uploaded with the article. This is the code you need to use in SIG: {gallery}myphotos{/gallery} ...
1
vote
2answers
433 views

Add extra fields to article

I'm trying to create a simple plugin that adds 4 textfields to the article options. But I'm not getting it to work. This is my plugin structure: extrafields.xml extrafields.php These are the ...
2
votes
1answer
828 views

User Plugin onUserAfterLogin

I am writing a custom user plugin to write the session id and user id on a txtfile(This will be in turn used for some of my perl systems) after the user logins on Joomla. So far i have managed to ...
0
votes
2answers
218 views

Store data from URL in Joomla website database

I just came through a scenario regarding joomla website. The scenario is: Data in URL is passed to Joomla website and from the URL Joomla must store the data into the database. Is this possible in ...

1 2
3
4 5
8