Home arrow Test arrow Maps in components, modules & contact Joomla 1.5.x
Maps in components, modules & contact Joomla 1.5.x PDF Print E-mail
Written by Mike Reumer   
Tuesday, 11 March 2008

You can make the plugin work in components, modules and contacts in Joomla 1.5!

You have to hack the index.php of Joomla 1.5.x in the root of your site.

Add these lines at line 84 after $mainframe->triggerEvent('onAfterRender');:

JPluginHelper::importPlugin('content');
$tmp_row->text = JResponse::getBody();
$tmp_params = new JParameter(null);
$mainframe->triggerEvent('onMap', array( &$tmp_row, &$tmp_params ), true );
JResponse::setBody($tmp_row->text);

Now it will show the map if it's placed in components, modules and the contact form of Joomla!
 
It's not recommended to hack Joomla and it's for your own risk.
 
For contacts: Make a contact and in the field  Miscellaneous Information place the code for {mosmap}. Make sure the contact is reachable on the site.
 
For module: Goto module manager, create a new module, select custom HTML,  Place {mosmap} in Custom output. Now this module should show a map. 
 
For modules you also can use module CustomContent.
Last Updated ( Thursday, 05 June 2008 )
 
< Prev   Next >

Search

Google

Advertisement