RSS
Home Forum v3
Welcome, Guest
Please Login or Register.    Lost Password?

[SOLVED] How to limit ctegory in google map module
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: [SOLVED] How to limit ctegory in google map module
#8096
[SOLVED] How to limit ctegory in google map module 1 Year, 4 Months ago Karma: 0
Does anyone know how to limit the map module by category rather than country/locality/state?
prosperityrei
Junior Boarder
Posts: 29
graphgraph
User Offline Click here to see the profile of this user
Last Edit: 2011/01/05 23:34 By prosperityrei.
The administrator has disabled public write access.
 
#8097
[SOLVED] 1 Year, 4 Months ago Karma: 0
In modules/mod_prop_googlemap/mod_prop_googlemap.xml

Find:

Code:

<param name="localityid" type="text" default="1" label="Locality id" description="localityid" />


Directly after add:

Code:

<param name="categoryid" type="text" default="" label="Category id" description="Filter map by category id" />


Then In modules/mod_prop_googlemap/helper.php

Find:

Code:

if($params->get('ShowPropertyID')){$where= 'WHERE p.id IN ('.$params->get('ShowPropertyID').')';}else{$where= 'WHERE p.published = 1 ';}


Directly after add:

Code:

if($params->get('categoryid')){$where= 'WHERE p.cid IN ('.$params->get('categoryid').')';}else{$where= 'WHERE p.published = 1 ';}


Then test. In module prop googlemap paramaters through joomla administrator back end find category id paramter and add category id.
prosperityrei
Junior Boarder
Posts: 29
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
Go to topPage: 1