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

How do I display content based on a channel field?

How Do I?

RSmithCreations's avatar
RSmithCreations
5 posts
10 years ago
RSmithCreations's avatar RSmithCreations

Hi, I am trying to display content on different pages based on the item selected in a dropdown channel field. For example: I have a channel field called “people” which is a dropdown menu of a list of people. This channel field is assigned to a channel called “videos”. In essence, you can tag “people” in the “videos”. Each person (“people”) has a page and I would like to pull the videos with only that person (tagged by channel field) to their page. Is there a way to get this done?

{exp:channel:entries channel="videos" channel_field="{person}"}
       
Boyink!'s avatar
Boyink!
5,011 posts
10 years ago
Boyink!'s avatar Boyink!

Sounds like a good case for using relationships - a people channel and and videos channel, and relationships to connect them and display them.

Otherwise there is a search parameter for the channel entries tag that might work.

       

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.