Jump to content

Remove Geomaps.css and Geomaps.js


Jay Chan

Recommended Posts

Hello my homepage uses Jreviews custom list blogview for News Headlines (custom listings_blogview_news.thtml) so I don't need the map. Other sections of the site such as Restaurants do use the map. For the homepage I want to reduce unnecessary file downloads such as geomaps.css and geomaps.js. How to do this?

 

Under Listings Type Manager I have already disabled GeoMaps integration for listings.

Under my file listings_blogview_news.thtml I have removed the following code references to the map:

// Map
$show_map = (!isset($GeomapsCenter) /*not proximity search*/ && Sanitize::getBool($this->Config,'geomaps.enable_map_list',true))
            || 
            (isset($GeomapsCenter) /*proximity search*/ && Sanitize::getBool($this->Config,'geomaps.enable_map_search',true))
            ;

	<?php if($show_map == true):?> 
        <!--  BEGIN MAP -->
        <div id="gm_mapColumn">
            <?php echo $this->renderControllerView('geomaps','map_results',array('width'=>'255','height'=>'300'));?>
        </div>
        <!--  END MAP -->
	<?php endif;?>

 

Please let me know how I can remove these two files from the homepage http requests.

 

Thanks

Link to comment
×
×
  • Create New...