Jump to content

Help moving map section to sidebar in detail page


Rick Davis

Recommended Posts

I'd like to have the Map section on the Detail page appear at the top of the sidebar. I have sidebar width set to 300px wide. I want the standard map on top and the streetview to appear below.

 

In detail.thtml, I've got the following code block identified. Just not sure of the best way to get it where I want it:

 

<!--  BEGIN MAP -->
        <?php if($show_map && isset($listing['Geomaps']) && abs($listing['Geomaps']['lat']) > 0 && abs($listing['Geomaps']['lon']) > 0):?>
        <div class="clear"></div>
	<h3 class="jrHeading">
		<span class="jrIcon jrIconMap"></span>
		<span class="jrHeadingText"><?php __t("Map");?></span>
	</h3>		
        <?php echo $this->renderControllerView('geomaps','map_detail',array('width'=>'100%','height'=>'300'));?>
        <?php endif;?>
<!--  END MAP -->

 

Thanks.

Link to comment
×
×
  • Create New...