Web Intelligent Solutions
EnglishRomana
font size Increase font size Default font size Decrease font size
screen size Narrow screen resolution Wide screen resolution Auto adjust screen size
Home arrow WISroGIS Tutorials arrow Map automation for SOBI2 directory, categories and entries

Map automation for SOBI2 directory, categories and entries

Print E-mail
Article Index
Map automation for SOBI2 directory, categories and entries
Customized directory entry map

 

 

Customized directory entry map

Joomla 1.0 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 Joomla!1.5native

 

 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 --- */

 


Digg!Del.icio.us!Technorati!Yahoo!Ma.gnolia!


 
< Prev   Next >
  • A Stategic Tool By creating this tool Mr. Cristi Teodoreanu is about to bring Mapping to all the developing countries that do not have the financial…
  • Bityard.com was looking for an easy solution to add more value to its business articles and reviews.  Fortunately, Cristi Teodoreau…
  • Rapiditate, eficienta, calitate - doar cateva dintre atributele voastre!  Multumesc pentru colaborare ! Si pe viitor, sa o tinem tot asa !
    (Dr. Tudor Ionescu,…
  • Trumpet International made use the WIS.ro for both our website design and mapping component. The service was excellent and for us, we will most definately…
  • On behalf of the Board of Directors of Algal Engineering Ltd., I would like to take this opportunity and express our happiness for the quality…