Hi all,
I’ve had a quick look at this but couldn’t find a solution that really fit my needs.
Essentially I have a couple of channels: county, town, service, listing, person. The website should allow you to search a “IT Expert in Westminster, London” for example using the url
http://acme.com/london/westminster/it-expert/
My current thinking is that each of the URL segments would equate to the url_title of each entry for the channel (‘london’, ‘westminster’, ‘it-expert’).
There is only to be one result for each of these terms, and it should load up the appropriate person once it has been found. For example,
http://acme.com/london/westminster/it-expert/
might load “Joe Bloggs”’ entry.
The listing channel is a combination of many related entry fields for town, service and person.
The ideal query would be (in very a pseudo way).
Find the ‘listing’ entry where
1) listing_service->url_title == segment_3
2) listing_town->url_title == segment_2
3) listing_town->town_county->url_title == segment_1
However I can’t figure out for the life of me the best way to do this. I’ve considered the query module, search module and straight up PHP.
It was also considered to ‘hard code’ these into a pages URL but this is prone to user error.
Any guidance would be appreciated.
Kind Regards,
Andrew