Embedding Phoca Slide show plugin in a joomla module!!
Posted: 15 Dec 2008, 23:43
Hi,
I needed to embed the Phoca gallery within a joomla module. So I resolved this problem and though of sharing it with others who might be interested.
1 - I installed the latest version of the phoca slide show plugin.
2 - I installed the custom code module (http://www.fijiwebdesign.com or http://www.joomlaspan.com).
3 - I created a new module based on the custom code module. (This is because I have more than one usage for it). To do this go to: Extensions->Module Manager -> new, then select Custom Code -> NExt , Add title and position and any other specific things you require.
4 - Paste the following code into the Custom code script section (module parameters) and parse php is set to yes:
(Please edit the 3rd line to your specific requirements)
Published my module to where I wanted it and magic I get the banner slide show.
I hope you will find this helpfull and maybe this could be added to the FAQ or docs.
Thanks
Charbel.
I needed to embed the Phoca gallery within a joomla module. So I resolved this problem and though of sharing it with others who might be interested.
1 - I installed the latest version of the phoca slide show plugin.
2 - I installed the custom code module (http://www.fijiwebdesign.com or http://www.joomlaspan.com).
3 - I created a new module based on the custom code module. (This is because I have more than one usage for it). To do this go to: Extensions->Module Manager -> new, then select Custom Code -> NExt , Add title and position and any other specific things you require.
4 - Paste the following code into the Custom code script section (module parameters) and parse php is set to yes:
(Please edit the 3rd line to your specific requirements)
Code: Select all
<?php
$params = array();
$text='{pgslideshow id=4|width=605|height=217|delay=3000|image=L}'; //EDIT THIS LINE
$article = new stdClass();
$article->text = $text;
JPluginHelper::importPlugin('content');
$dispatcher = &JDispatcher::getInstance();
$results = $dispatcher->trigger(
'onPrepareContent', array (&$article, &$params, 0));
print($article->text);
?>
I hope you will find this helpfull and maybe this could be added to the FAQ or docs.
Thanks
Charbel.