Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

call plugin in joomla component

How can i call joomla 'Simple Picture Slideshow' plugin in any joomla component. Have any solution?

Thanks

like image 469
Seema Avatar asked Dec 10 '22 09:12

Seema


2 Answers

Best way to call content plugins in Joomla! 1.5 and above is just use:

$text = JHTML::_('content.prepare', $text);

http://docs.joomla.org/Triggering_content_plugins_in_your_extension

like image 85
Cr4ckm3 Avatar answered Dec 28 '22 08:12

Cr4ckm3


You can call any event of plugin which is defined in that plugin.

$dispatcher = JDispatcher::getInstance();
$data = array($argu1, $argu2);   // any number of arguments you want
return $dispatcher->trigger($eventName, $data);
like image 32
Gaurav Avatar answered Dec 28 '22 07:12

Gaurav