Displaying Contents from a City / Country
The modules Marketplace has location field. I have added few items. Now I am trying to have the following
- A page for each country, listing the items from that country.
For example - page-US : items from US , page-France - Items from France.
I use the following macro in a page block to list items from US. This works and lists items from US.
~system:keyword_search:TemplServices["bx_market", {"meta_type": "location_country", "keyword": "US"}, "unit.html"]~
But how can I avoid manually creating 100's of pages for each of the countries ? Because later I want to create separate pages for the city etc...
- Is it possible for the macros to take parameters from the url ? For example - mysite/country=france that can then be passed to the macro ?
- Is there a better way to achieve this ?
- Also now the marketplace location is being displayed as Map. How can I display the Address field directly (together with the map view). I want each field in the address (postal code, Country, city) etc clickable so the user can go to the corresponding page. Say uer clicks the city and it will take to the city page that lists every item from that city.
I hope I am missing something here and UNA as a framework supports this. Thank you for the help.