Skip to main content

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
24 votes
1 answer
8k views

How to save Custom Fields in Core components

I'm trying to add a single, simple field to each #__content item, and I've very carefully followed the tutorial at Adding Custom Fields to Core Components, substituting "content" for "contact". I now ...
GDP's user avatar
  • 7,715
12 votes
2 answers
5k views

Add a custom button to a core backend component

Is it possible to add a custom button (with a custom action, of course) to the JToolbar of a standard Joomla 3 component (com_contents) without modifying the original source code? Background: I need ...
mHouses's user avatar
  • 429
10 votes
1 answer
278 views

Last Event Triggered by Plugin

I need to know which event is most probably the last one triggered in normal application flow. The Event should be triggered after all default controller actions have been run, the template is ...
philipp's user avatar
  • 377
9 votes
1 answer
476 views

Trash Joomla Article in frontend

I'm developing a small plugin for Joomla 3.x that adds a "Trash article" button when you're in Joomlas Frontend. See screenshot below. https://i.stack.imgur.com/nlycx.jpg Now I have this AJAX call ...
Patric Gustafsson's user avatar
8 votes
4 answers
2k 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 ...
Zachary Draper's user avatar
8 votes
1 answer
328 views

Plugin event only when Email activation

I am just referring the Joomla User plugin events in the URL https://docs.joomla.org/Plugin/Events/User/en onUserLogin onUserAuthenticate onUserBeforeSave Just wondering which one will help me to do ...
Malaiselvan's user avatar
  • 2,731
7 votes
4 answers
2k views

Is it possible to get generator tag removed from Joomla sites without interfering core framework?

Is it possible to get the generator tag removed from Joomla sites without interfering with the core framework. I personally feel this is an irritating aspect of the source code and makes websites ...
Durgesh Chaudhary's user avatar
7 votes
2 answers
4k views

How to call a model method from a system plugin?

I have a component ('com_foo') which has a model called 'foobar'. The class declaration is like this: class FooModelbar extends JModelItem This class has a public method called getFooBar(). I also ...
sifu's user avatar
  • 1,105
7 votes
2 answers
724 views

How do I properly raise an error from within a plugin?

I am successfully preventing some content from being saved under certain conditions, but am having trouble handling the error message to the user. The actual text does display, but there is ...
GDP's user avatar
  • 7,715
7 votes
2 answers
986 views

Automatically publish plugin after installation

I've created a couple of small plugins that I install on most of my websites. But new plugins are (fortunately) disabled by default when installed. I know it's only a couple of clicks to enable the ...
johanpw's user avatar
  • 13.3k
7 votes
1 answer
5k views

Override MVC classes in Joomla 3

Is there anyway to override MVC classes in Joomla 3? I have found this thread but it is for Joomla 2.5. How to override core classes? I have done MVC overrides in Joomla 2.5 successfully but now I ...
cha's user avatar
  • 387
6 votes
3 answers
517 views

Configure Joomla to send an email at login

Can someone let me know how to configure Joomla so that I get an email each time someone logs into my site. At the moment, I get an email only when someone has registered. I'm running Joomla 3.5
cpatte7372's user avatar
6 votes
1 answer
2k views

Get all installed Joomla extensions and their version

I'm not really familiar with Joomla, but I need to write a script that is supposed to list all the installed extensions and their version number, if possible. I've already done this for WordPress, ...
R.G.'s user avatar
  • 163
6 votes
2 answers
10k views

window.addEvent('domready', ...) alternative

I use an adapted version of google code prettify on my page which lets me highlight Mathematica code. For the correct injection of the necessary js code, the JPrettify plugin is quite handy. Since ...
halirutan's user avatar
  • 379
6 votes
1 answer
340 views

Plugin download from live site

Joomla 3.4 Is it possible to download (already installed) plugins from a live website? My scenario is that I downloaded a free plugin a while back, extracted it somewhere on my local pc and can't ...
jonboy's user avatar
  • 3,603
6 votes
1 answer
66 views

Can components / non-plugins react to events?

Is it possible for components to react to events - i.e. in some way become an observer to plugin events?
codinghands's user avatar
  • 2,295
5 votes
2 answers
7k views

Available fields in Joomla XML manifest

When developing an extension, what are the form field types I can use in Joomla?
johanpw's user avatar
  • 13.3k
5 votes
2 answers
3k views

Unable to install a component via the extension manager

I have a J2.5 install that simply refuses to install a component using the extensions manager. The directories are all writable, the Forum Post Assistant reports that session is writable, tmp path is ...
toomanyairmiles's user avatar
5 votes
2 answers
1k views

How to get assigned template name in onAfterInitialise?

This seems like a bug and I tested on both 2.5.x and 3.x but there is no way to get assigned template name in onAfterInitialise by using $app = JFactory::getApplication(); $templatename = $app->...
Dan's user avatar
  • 889
5 votes
2 answers
931 views

Add a class to all images in article dynamically

I'm trying to build a plugin that adds a class to all images in my articles. So far I have the following code: <?php // no direct access defined('_JEXEC') or die; jimport('joomla.plugin.plugin'); ...
Bogowoe's user avatar
  • 1,178
5 votes
1 answer
146 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 ...
mickmackusa's user avatar
  • 4,791
5 votes
1 answer
171 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 ...
sbruemmer's user avatar
5 votes
3 answers
4k views

Change http to https in source code when using SSL

I recently enabled Force_SSL on one of my Joomla sites (by enabling "Force SSL" in Global Configuration), but I run into problems with blocked content (non-SSL content) from both Google fonts and ...
johanpw's user avatar
  • 13.3k
5 votes
2 answers
2k views

How to add any text/script before </body>

Is there any content plugin that let me to put any text/code/script before closing </body> tag? If there is no such plugin, is there any documentation about how to create that kind of plugin?
webchun's user avatar
  • 2,418
5 votes
2 answers
2k views

What does $context parameter of content plugin mean?

I've read that $context parameter is: "The context of the content being passed to the plugin - this is the component name and view - or name of module (e.g. com_content.article)" https://docs....
stckvrw's user avatar
  • 891
5 votes
1 answer
131 views

Is there any event available to call after plugin is installed?

I have to make some alter in database after plugin is installed. Is there any events that is called after plugin is installed?
subashbasnet8's user avatar
5 votes
2 answers
746 views

Apply the same code on PHP to content of component and each module

I have some code on PHP something like: $oldstring = ...; ... $pattern = ...; $newstring = preg_replace_callback($pattern, ... {...}, $oldstring); echo $newstring; I need to apply this code (maybe ...
stckvrw's user avatar
  • 891
5 votes
1 answer
518 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 ...
mickmackusa's user avatar
  • 4,791
5 votes
1 answer
753 views

Joomla plugins are not working even when they are enabled

I installed some Joomla plugins but they are not working at all. I checked the plugin states and found that they were enabled. I even added some code to the plugins to check whether they were getting ...
Matt's user avatar
  • 63
5 votes
1 answer
89 views

Need some help optimizing new compression plugin [closed]

I am working on new free compression plugin https://github.com/youjoomla/jcompress https://github.com/youjoomla/jcompress/archive/master.zip and need some help in speeding things up. The process ...
Dan's user avatar
  • 889
5 votes
1 answer
425 views

How to pass, with a custom button, the selected items to a controller?

As seen in this question (Add a custom button to a core backend component), I've created a simple plugin that adds a custom button on the com_content component. When I click on this button, the site ...
mHouses's user avatar
  • 429
5 votes
2 answers
848 views

Custom profile fields, restricted to admin only

I am following this example here Profile plugin to create my own profile plugin. What I can't figure out is how to make a field admin only? In the original customer / profile there are fields like ...
Andreas's user avatar
  • 419
5 votes
1 answer
1k views

Triggering onContentPrepare from Category Blog view

I found this page on how to implement a custom field in article: http://docs.joomla.org/Adding_custom_fields_to_the_article_component and it works well, but only in article view. What should I do ...
branquito's user avatar
  • 151
5 votes
1 answer
2k views

Set cookie in from joomla plugin

I want to display App download message(an image)to users browsing my site from Android device only. So i have developed a plugin to achieve this . Now i want to display this message only first time so,...
Ram Guru99's user avatar
5 votes
2 answers
2k views

Should I use JResponse::setBody or onContentPrepare for strings replacements?

I am developing a shortcodes plugin that searches trough Joomla content and creates html outputs from the matched string. Currently I am using this public function onContentPrepare($context, &...
Dan's user avatar
  • 889
5 votes
2 answers
541 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 ...
nimble's user avatar
  • 418
5 votes
1 answer
131 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 ...
miguelbgouveia's user avatar
5 votes
1 answer
192 views

Prevent User Deletion with Plugin?

Is it possible to prevent Joomla from deleting users with a user plugin? We need the user profile to be disabled, but never deleted. I've been tinkering with onUserBeforeDelete, but the docs refer ...
GDP's user avatar
  • 7,715
4 votes
2 answers
697 views

Trying to save multiple field in Plugin

I can add a multiple select field to my plugin's xml file, like this for countries but when I save it, it only saves the value "array" in the parameters. I would like to save it as a comma separated ...
Gord Fisch's user avatar
4 votes
1 answer
1k views

Trigger event for specific plugin only

Is it possible to trigger a event for specific plugin? I can load a specific plugin $loaded = JPluginHelper::importPlugin('my_component', 'my_plugin_1'); But when I trigger an event, all the ...
xavip's user avatar
  • 273
4 votes
1 answer
253 views

Is there any equivalent event to onContentAfterSave for Modules?

Is there a way we can 'listen' to the module save event so that we can use a plugin to do some additional work. I found this question on stack overflow but I am confused as to where dispatcher will be ...
sifu's user avatar
  • 1,105
4 votes
3 answers
2k views

How to allow media manager open video files

How can select a video file (mp4, ogv, webm ...) in a plugin as parameter? I intend to select a video file in a plugin parameters, tried field type media but videos files are not listed. Using field ...
n.h.'s user avatar
  • 871
4 votes
1 answer
685 views

How can include the component view in plugins

I have custom component and plugins and listing some details in table after click on the table i'll go to details page. i want show the one of details in article, so i created a custom plugins and got ...
SAM's user avatar
  • 83
4 votes
1 answer
464 views

Is there an event like "OnAfterCompileHead"?

As per title, is there already an event that can work like a sort of OnAfterCompileHead? Maybe onAfterDispatch, onAfterRender or onBeforeRender? I need to change some meta tags in the <head> ...
Gruber's user avatar
  • 302
4 votes
2 answers
611 views

Joomla Plugin to fire onUserLogin

All, I have a simple plugin which does fire on login. I have the same plugin working in 2.5 but in my joomla 3.5 I cannot get it work get the username. This does work on Joomla 2.5 Here it is. Any ...
Jason Pate's user avatar
4 votes
1 answer
579 views

Article custom fields for one category

With the help of this and this I made a plugin to add a custom fields to the article component. It works fine but I would like to make these custom fields mandatory and only for a specific article ...
web-tiki's user avatar
  • 1,373
4 votes
1 answer
290 views

Trigger plugin event in fof

I am working in Akeeba subscription it's based on FoF.I wanted to check some condition before user can delete subscription. I have a plugin MyPlugin and class is - class plgAkeebasubsMyPlugin ...
Irfan's user avatar
  • 167
4 votes
1 answer
901 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 ...
Matej's user avatar
  • 123
4 votes
2 answers
380 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() { ...
n.h.'s user avatar
  • 871
4 votes
1 answer
108 views

How to use getContentExtras() in SmartSearch indexing?

I've read google all the very limited documention of SmartSearch/com_finder routines after starting with How to add com_content extra fields to Smart Search Index, and am no further along ...
GDP's user avatar
  • 7,715

1
2 3 4 5
9