Map automation for SOBI2 directory, categories and entries |
|
|
|
Page 2 of 2 Customized directory entry map Joomla 1.0  | In /components/com_sobi2/templates/default/ (or your selected template, if using another), edit the file sobi2.details.tmpl.php: Around line 35, find the text HTML_SOBI::showGoogleMaps($mySobi, $config);
and replace it with the following code: /* --- WISroGIS plugin injection --- */ global $_MAMBOTS; $row =& new stdClass(); $mySobi->geo = $config->getGeoPosition( $mySobi->id ); $row->text = "{WISroGIS width='100%'|height='250px'| center_lon='{$mySobi->geo['long']}'| center_lat='{$mySobi->geo['lat']}'| reprojectCenter='true'| zoom_level=8| sobi2_task='item'|sobi2_id='{$mySobi->id}' ~}"; $_MAMBOTS->loadBotGroup( 'content' ); $args = array( 1,&$row,&$params); $_MAMBOTS->trigger( 'onPrepareContent', $args, false ); echo $row->text; /* --- end WISroGIS plugin injection --- */
| Joomla 1.5  | | In /components/com_sobi2/templates/default/ (or your selected template, if using another), edit the file sobi2.details.tmpl.php: Around line 35, find the text HTML_SOBI::showGoogleMaps($mySobi, $config);
and replace it with the following code: /* --- WISroGIS plugin injection --- */ $row = new StdClass(); $mySobi->geo = $config->getGeoPosition( $mySobi->id ); $row->text = "{WISroGIS width='100%'|height='250px'| center_lon='{$mySobi->geo['long']}'| center_lat='{$mySobi->geo['lat']}'| reprojectCenter='true'| zoom_level=8| sobi2_task='item'|sobi2_id='{$mySobi->id}' ~}"; $args = array( 1,&$row,&$params); JPluginHelper::importPlugin( 'content' ); $dispatcher =& JDispatcher::getInstance(); $params = & new JParameter(''); $results = $dispatcher->trigger('onPrepareContent', array(&$row,&$params,0)); echo $row->text; /* --- end WISroGIS plugin injection --- */
|
|