We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Query module to grab entry with specific related entries ?

Development and Programming

Andrew Fairlie's avatar
Andrew Fairlie
126 posts
14 years ago
Andrew Fairlie's avatar Andrew Fairlie

I have three channels :

‘County’ ‘Town’ ‘Service’

I pull them together in a fourth channel :

‘Listing’

-

My ‘Listing’ URL looks like this :

/county/town/service

-

QUESTION

How can I use the query module to grab the correct listing?

SELECT [‘Listing’] WHERE [‘County’ url_title] = “{segment_1}” AND [‘Town’ url_title] = “{segment_2}” AND [‘Service’ url_title] = “{segment_3}”

Is this possible with the query module?

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.