Hello all,
I'm writing my first component and want to use the googlemap plugin in my component. But I can't get it to work. Here is my code in my html.php file in the component directory:
Code:
<?php
$plugin =& JPluginHelper::getPlugin('content', 'plugin_googlemap2');
$plugin_params = new JParameter( $plugin->params );
$mainframe->triggerEvent('onPrepareContent', $plugin_params);
?>
{mosmap lat='51.26'|lon='4.51'}
I know that the code might be wrong, but I searched on the forums and documentations and found several code examples but none of them seem to work.
Regards