Jump to content

Map in Directory


Lars Dolling

Recommended Posts

Hello,

 

map is standard only in listings. I want it actually on all my pages so including the directory page.

 

I thought I'm clever and simply override the directories\directory.thml by adding

<div id="gm_mapColumn">

            <?php echo $this->renderControllerView('geomaps','map_results',array('width'=>'300','height'=>'300'));?>

</div>

 

Maybe clever but not smart as the map doesn't show up.  :P

 

I assume it's a) renderControllerView is no available from directories or b) because it doesn't have any listings it will not show the map (similar to an empty list view).

 

What would be the issue and would be there a workaround? In general I would like to understand better how to pass a listing to the map as I actually want to add the map to some custom php pages outside JReviews.

 

Rgds

Lars

Link to comment
×
×
  • Create New...