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 specific channel entry within an entry of another channel

April 23, 2012 4:47pm

Subscribe [2]
  • #1 / Apr 23, 2012 4:47pm

    jmorin

    1 posts

    This question may be related to a resolved thread.

    My question is similar to this other thread, but I still can’t extrapolate from it.

    I have two channels: Products and FAQ’s. The FAQ’s can be accessed by going through the support section, but I also want them to display on their corresponding Product page. So there is Product A’s product page and Product A’s FAQ page. I want to embed the content from the FAQ page on the Product page.

    To compound the problem, not all products have corresponding FAQ’s, so I know I would need a conditional statement, but I have no idea how to qualify whether the current product has a FAQ.

    Since the FAQ page and product page will have similar titles ( ‘Product’ and ‘Product FAQ’), I’m thinking I might be able to somehow grab the {title} from the Product page….but I can’t wrap my head around it.

    If it helps, this will be my first EE site and I’m struggling with anything beyond the basics.

  • #2 / Apr 24, 2012 10:51am

    Barrel

    92 posts

    You could add Categories to your FAQ channel (i.e. Product) and on your Product page pull FAQ’s that are under the “Product” category in the channel entries tag. 

    If you want to pull strictly off the title you can do a “search” in your entries tag, see here: http://ellislab.com/expressionengine/user-guide/modules/channel/channel_entries.html#search-field-name

  • #3 / Apr 24, 2012 1:15pm

    Dan Decker

    7338 posts

    Hi jmorin,

    Thanks for posting your questions!

    You might be interested in using relationships. That will let you relate FAQs to the correct products, and will also only display the related FAQ if it’s available.

    Let me know what you think!

    Cheers,

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

ExpressionEngine News!

#eecms, #events, #releases