ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

display content from a channel ONLY if one of the fields is equal to a condition?

July 26, 2012 12:36pm

Subscribe [2]
  • #1 / Jul 26, 2012 12:36pm

    mja388

    6 posts

    Hi. Is there any way I can display content from a particular channel ONLY if one of the fields is equal to a condition?
    I’m using the code below which seems to work ok BUT I only want it to display the the content from the channel if the custom field “filmography_section” is “TV Movies”. Thanks in advance.

    {exp:channel:entries channel="filmography"  orderby="filmography_date" sort="desc"}
  • #2 / Jul 27, 2012 12:50am

    mja388

    6 posts

    Can anyone please offer advice about my previous question. In one channel (filmography) I have a custom field called “filmography_section” which has a dropdown with 4 options such as “TV Movies”, “Theatre” etc.. I want to know how to display ONLY the entries from that channel those “filmography_section” is “TV_Movies”. Any advice would be great! Many thanks.

  • #3 / Jul 27, 2012 10:22am

    Boyink!

    5011 posts

    Have you explored the parameters available on the channel:entries tag to see what options you have?

  • #4 / Jul 27, 2012 3:10pm

    Kevin Smith

    4784 posts

    Hi mja388,

    Indeed, the User Guide is a great wealth of information. This part on the Channel Entries tag answers your question almost perfectly. We’re always here to help, but since our responses might take up to 2 business days during a heavy support load, I wanted to make sure you knew where to find the resources that are available to you 24/7.

    Best of luck!

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases