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.

Empty exp:channel:entries

August 05, 2010 7:02pm

Subscribe [1]
  • #1 / Aug 05, 2010 7:02pm

    briansnyder

    5 posts

    Hi all-

    I’m running in to an issue that I’m hoping someone can help me out with.

    I have an embedded template called from a template group index which uses an {exp:channel:entries channel="People"} to return a list.  Works great.  That index template is a single line:

    {embed="/people/.directorywidget" letter="a"}

    The embedded widget looks like this:

    {exp:channel:entries channel="people"}
    {if no_results}
    i am empty
    {/if}
        <div class="person">
            <h4>{title}</h4>
    <p>    </div><br />
    {/exp:channel:entries}

    Within another channel that is not referenced from this template, I have an entry with a url_title of “directory”.

    If I visit http://localhost/people it works great.

    If I visit http://localhost/people/somrandomthing it works great.

    If I visit http://localhost/people/directory, the channel:entries list is empty.

    If I rename the entry to have a different url_title, http://localhost/people/directory works fine.

    My knowledge of the entry url_title vs. template url handling is obviously lacking, but the url user guide entry and additional searches aren’t leading me to any answers.  I don’t understand why it would load the page, but cause a channel:entries call to return no results.

    Any advice or links to documentation would be very much appreciated.

    Thanks!
    -brian

  • #2 / Aug 05, 2010 8:10pm

    briansnyder

    5 posts

    Found a page out on the interwebs that led me to resolve this by adding the dynamic=“off” attribute.

  • #3 / Aug 05, 2010 8:25pm

    Lisa Wess

    20502 posts

    Glad you got it, Brian.

    In EE 2 though, you want it to be:

    dynamic="no"

    You can read more about this mechanic in The Importance of Semantics

    But for now, you’re all set?

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

ExpressionEngine News!

#eecms, #events, #releases