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.

How do display channel 2?

June 11, 2012 11:39am

Subscribe [2]
  • #1 / Jun 11, 2012 11:39am

    vw000

    482 posts

    Hi, im displaying some content like this:
    {exp:channel:entries channel="{segment_1}” limit=“1” disable=“categories|member_data|pagination”}

    But if the page is on url segment 2 or 3 it will not display

    example.com/segment1/segment2/

    How can I make this tag to display channel 2 if the page url is on segment 2 and channel 1 if its on segment 1?

    Thanks

  • #2 / Jun 11, 2012 11:41am

    Rob Allen

    3114 posts

    Try adding url_title

    {exp:channel:entries channel=”{segment_1}” limit=“1” disable=“categories|member_data|pagination” url_title="{segment_2}"}
  • #3 / Jun 11, 2012 11:46am

    vw000

    482 posts

    Thanks but it does not work. Should I not be using if statements?

    Like if page is on segment 1, display channel 1, if its on 2, display channel 2?

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

ExpressionEngine News!

#eecms, #events, #releases