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.

if no_results showing up when there ARE results and NOT when there are no results

July 16, 2010 5:53am

Subscribe [1]
  • #1 / Jul 16, 2010 5:53am

    Chad Crowell

    242 posts

    it must be opposite day!

    Here is my full weblog:entries loop:

    {exp:weblog:entries weblog="listings" disable="category_fields|member_data|trackbacks" rdf="off" limit="9" paginate="bottom"}
                        {if no_results}
                        {no_listings}
                        {/if}
                        <div class="productAreaBox">
                            <div class="image">
                            {if cf_listings_image1}<a href="/listing/{url_title}">_                        {exp:ed_imageresizer_                            image="{cf_listings_image1}"_                            maxWidth="180"_                            class="myimgclass"_                            alt="{title}"}_                        </a>{/if}
                            </div>
                            <h4><a href="/listing/{url_title}" title="{title}">{title}</a></h4>
    <p>                        {categories}<a href="/buy/{category_url_title}">{category_name}</a>{/categories}<br />
                            {exp:format_price price="{cf_listings_price}"}<br />
                        </div><br />
                        <br />
                        {paginate}<br />
                            {if "{total_pages}" != 1}<div class="pag-temp">Page {current_page} of {total_pages} pages {pagination_links}</div>{/if}<br />
                            {if "{total_pages}" == 1}<br />
                            [removed]<br />
                                $('td.display').empty();<br />
                            [removed]{/if}<br />
                        {/paginate}<br />
                    {/exp:weblog:entries}

    even when I pare it down to this, I still get 9 no results messages with the titles…

    {exp:weblog:entries weblog="listings"}
        {if no_results}
        hello<br>
        {/if}
    {title}
    {/exp:weblog:entries}

    Even just this code on its own template is showing the same thing.  EE 1.6.9 20100415

    this might be the craziest thing i’ve seen in 67 years of EE coding.

  • #2 / Jul 16, 2010 2:52pm

    Lisa Wess

    20502 posts

    Geez, Chad.  You’re older than I thought.  67 years of EE coding?!

    That is strange, though.  What extensions are you running, please?

  • #3 / Jul 16, 2010 7:11pm

    Chad Crowell

    242 posts

    Yep 67, don’t hate!

    jQuery Cp
    Edit tab ajax
    FieldFrame with all the goodies
    Fresh Vars
    Structure
    NSM safe segments
    User
    SAAEF Redirect
    MD Simple Relation
    Push to foxycart
    Rating
    Seg2Cat
    Super Search
    Friends
    Favorites

  • #4 / Jul 16, 2010 8:09pm

    Lisa Wess

    20502 posts

    You know what’s next, right? In Utilities > Extension Manager there is a giant green button in the upper right.  That will disable EE’s reading of extensions without losing any data.

    Please click it then reload your minimized template and let’s see what happens.

    Thank you =)

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

ExpressionEngine News!

#eecms, #events, #releases