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.

Repeating content

August 10, 2010 4:18pm

Subscribe [2]
  • #1 / Aug 10, 2010 4:18pm

    vmills

    96 posts

    This one has me stumped. On the live site this is what displays for the first item in a list:

    Project Title
    Up to 1.5 AMA PRA Category 1 Credit(s)™
    Up to AMA PRA Category Credit(s)™

    That second “up to” line shouldn’t be there. It isn’t there for any of the other entries. Here’s the source code:

    <a href="http://website.com">Project Title</a>
    Up to <strong><em>1.5 AMA PRA Category 1 Credit(s)™</em></strong>
    Up to <strong><em> AMA PRA Category  Credit(s)™</em></strong>

    Here’s the relevant part of the template code:

    {exp:weblog:entries weblog="cme" show_expired="no"}
    {if monograph-link}<a href="http://{monograph-link}">{webtitle}</a>{/if}
    {if cme-journal}{cme-journal}
    {/if}
    Up to <strong><em>{credit-num} AMA PRA Category {credit-type} Credit(s)™</em></strong>
    {/exp:weblog:entries}

    I’ve looked at the entry and everything looks fine. Other entries are handled the same way and display without duplication. I’m just not sure *why* this would happen so I don’t know where else to look.

  • #2 / Aug 10, 2010 4:42pm

    Ingmar

    29245 posts

    It’s showing two entries from the cme weblog, one with empty custom fields. Try to use limit=“1” or delete the superfluous entry.

  • #3 / Aug 10, 2010 5:09pm

    vmills

    96 posts

    Thanks, my brain freeze is starting to thaw. I couldn’t see that it was a displaying content from a separate entry but as soon as I read your comment, I realized where I should look and how to code a test template, so I’ll be able to figure it out.

  • #4 / Aug 10, 2010 5:12pm

    Ingmar

    29245 posts

    Glad to see I could help. Please post again as needed.

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

ExpressionEngine News!

#eecms, #events, #releases