Hi, i have 3 template
Firm , Category, City
i can list Firms on the Category template- ex: construction firms list
$firms = $pages->find("template=firm, categories=$page");
i can list Firms on City template ex: atlanta firms list
$firms = $pages->find("template=firm, cities=$page");
but what i want to do is
construction firms on atlanta
and
atlanta construction firms
i mean on category page i want to filter city
on city page i want to filter results according to category
i can do it by this way
$firms = $pages->find("template=firm, categories=$page");
foreach($pages->get("/cities/")->children() as $city)
{
$categorycityfirm= $pages->find("template=firm, categories=$page, cities=$city");
}
On category template by this code above i get results. But what i want is there must be link of cities on cateory page and when i click on city name it should opens filtered result.
So should i implement new template like categorycityfirms and citycategoryfirms?
Page hierarchy
Home
Firms
-firm1
-firm2
Cities
- city1
- city2
Categories
-cat1
-cat2