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 to prevent one entry to show multiple times

June 04, 2012 7:14pm

Subscribe [2]
  • #1 / Jun 04, 2012 7:14pm

    Crnaovca

    627 posts

    So main question is this ...
    on frontpage there are 2 boxes, one is for latest news, and other is for one specific channel. If something is latest news, it shows in latest news box, and if that entry is in that specific channel it shows 2 times.

    So i suggested to put checkbox for whatever client want to have on latest news and in such way i can filter out what I do not want to be in other box. Client does not want that.

    So ... basically, how can I prevent, or in which way I can do it so one entry does not show multiple times on one page. It has to be dynamic, there are 60 entries per day.

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

    jcowen

    66 posts

    I’m unclear how a ‘latest news’ item might be appearing twice.
    You have a channel ‘latest news’ with content publishing to the first box. Then you have another channel publishing to your second box.

    But it sounds as though you’re somehow publishing some news entries to 2 channels? I’m sure this isn’t the case ... but not sure I understand how this is set up otherwise.

    Can you publish your code for these 2 boxes - maybe that’ll help me understand what you’re trying to do.

    Cheers

  • #3 / Jun 13, 2012 1:33am

    Crnaovca

    627 posts

    Mostly problem in communication derives from fact english is not my main language so when I am writing, I use semantics of my own language :D

    actually problem is simple, first you have channel:entries tag that shows latest entries from 4 channels and after that channel:entries tag that shows latest entries only from one channel. so when I show latest entries for the second time they are already shown in tag above.

    Latest news on site:
    {exp:channel:entries channel="news|entertainment|science" limit="10"}
      {title}
      {body}
    {/exp:channel:entries}

    Latest news in science:
    {exp:channel:entries channel="science" limit="3"}
      {title}
      {body}
    {/exp:channel:entries}

    Latest news in entertainment:
    {exp:channel:entries channel="entertainment" limit="3"}
      {title}
      {body}
    {/exp:channel:entries}

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

ExpressionEngine News!

#eecms, #events, #releases