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 more than one channels problem

September 15, 2013 8:44am

Subscribe [2]
  • #1 / Sep 15, 2013 8:44am

    Franka

    54 posts

    Hi,

    I’ve got a page where I want to display entries of 3 or more channels by date.
    I use pipes.
    But .... 2 of those channels I just want to display 1 entry and 1 channel I want to display all entries.
    I just need something so I can ask if this is channel A or B display 1 entry.

    {exp:channel:entries channel="A|B|C" orderby="date" sort="desc" limit="9" paginate="bottom" }
    {if channel == "A" OR channel == "B" } just display 1 entry
    {text}
    {if:else}
    {text}
    {/if}
    {/exp:channel:entries}

    I tried to give a status but hat didn’t work.

    Please can someone help

    greetings,
    Franka

  • #2 / Sep 19, 2013 11:44am

    Boyink!

    5011 posts

    If your goal is to have all of these entries mixed into the same result list by date I think you are pushing past the limits of what EE can do with the native tag set.

    This logic would all need to be a parameter so you’d get 9 results no matter what. Using conditionals inside the tag pair might be possible but you’d end up with fewer than 9 entries in some cases.

    I’d either change your expectations, look into a custom query, or use - as you said - a custom status to hand-pick the entries you want returned. The latter approach will work, you must have not coded something correctly.

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

ExpressionEngine News!

#eecms, #events, #releases