Skip to main content
Share Your Experience: Take the 2024 Developer Survey

New answers tagged

0 votes

DB Query with JOIN in Task Plugin

Your script is doing several things that it doesn't need to and a few things that are actively harmful to your process. Casting a column name to an integer doesn't make any sense, but I suspect you ...
mickmackusa's user avatar
  • 4,791
2 votes
Accepted

DB Query with JOIN in Task Plugin

You are casting the column name to integer in PHP, which always results in 0: (int) $db->quoteName('a.type_id') This results in query like this: LEFT JOIN `uj2k9_mycomponent_rectypes` b ON b.id = ...
Sharky's user avatar
  • 11.4k
0 votes

Trigger event inside custom plugin group

OK, I got custom events working, and it's not too difficult. Your plugin needs some structure: /path/to/joomla/plugins/custom This sets your new custom plugin type. For the OP, replace custom with ...
Michael's user avatar
  • 593
1 vote
Accepted

How to set and use a global variable within a content plugin?

Normally plugins in Joomla are instantiated only once per request. So using a class member variable is the cleanest solution: use Joomla\CMS\Event\Content\ContentPrepareEvent; use Joomla\CMS\Plugin\...
Sharky's user avatar
  • 11.4k

Top 50 recent answers are included