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.

Entries Tag Not Working?

April 14, 2010 5:24pm

Subscribe [4]
  • #1 / Apr 14, 2010 5:24pm

    Rene Ruiz

    13 posts

    I have a weblog with a short name of “conference-updates”. I’m using Structure for normal pages, using the “conference-pages” weblog.

    On the Home page using the index template, I’m trying to call a snapshot of the Updates section with the 5 latest entries using:

    <div id="updates">
                <h2>{exp:weblog:info weblog="conference-updates"}{blog_title}{/exp:weblog:info}</h2>
    <p>            {exp:weblog:entries weblog="conference-updates" sort="desc" limit="5"}<br />
                        <br />
                <h3 class="title">{title}</h3>                <br />
                {date_heading}<br />
                <h4 class="date">{entry_date format=' %l, %F %d, %Y '}</h4><br />
                {/date_heading}<br />
                {story}<br />
                {/exp:weblog:entries}<br />
    </div>

    Only the <h2> is being rendered, not sure what I’m doing wrong? Admittedly this is my first time writing a template.

  • #2 / Apr 14, 2010 5:28pm

    Ingmar

    29245 posts

    Are you using any custom statuses? Are the entries dated in the past, and expired, or in the future?

  • #3 / Apr 14, 2010 5:44pm

    Rene Ruiz

    13 posts

    Hey Ingmar,

    No custom statuses, yes they’re dated in the past, but no expiration date is set.

  • #4 / Apr 14, 2010 7:33pm

    Brandon Jones

    5500 posts

    Rene,

    Try this in an otherwise completely blank template.

    {exp:weblog:entries weblog="conference-updates"}
       <h2>{title}</h2>
    <p>{/exp:weblog:entries}

    Let’s start with the basics and go from there. Does that output correctly?

  • #5 / Apr 15, 2010 9:45am

    Rene Ruiz

    13 posts

    Yes it does. Odd…

  • #6 / Apr 15, 2010 9:59am

    Sue Crocker

    26054 posts

    Then build on that template. See at what point it breaks.

  • #7 / Apr 15, 2010 11:08am

    Rene Ruiz

    13 posts

    Okay, so I created a new template called debug. And it seems to work fine.

    Then I switched the template of the Home page using the Structure module and the problem reverts. I guess it’s an issue with structure?

  • #8 / Apr 15, 2010 5:08pm

    Ingmar

    29245 posts

    Could be, yes. Does it work fine without it?

  • #9 / Apr 20, 2010 1:45pm

    Rene Ruiz

    13 posts

    Update: Got some help from Travis of Structure. Adding dynamic=“off” to the entries tag fixed it.

    Thanks everyone.

  • #10 / Apr 20, 2010 3:56pm

    Ingmar

    29245 posts

    Ah, you were using this as a single entry template… yes, that makes sense. Glad to see you’re all set. Please post again in case anything else comes up.

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

ExpressionEngine News!

#eecms, #events, #releases