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.

Entry disappears from index after attaching an image

February 28, 2011 1:32pm

Subscribe [1]
  • #1 / Feb 28, 2011 1:32pm

    jafoca

    1 posts

    EE newbie here - I have read through the Prag. Prog. EE2 book, but I am getting started with working on a site and have hit a roadblock.

    I have EE 2.1 installed with the Agile Records demo site - I have set up a new channel / set of templates called Artists, and I am purely working on the artists\index template at this time.

    When I create a new artist entry with no ‘featured image’ attached, the entry will show up on the artists index page as it should. When I create an entry with a ‘featured image’ attached, the whole entry is then missing from the index page. Even if I remove all image references from the template, the entry still does not show up on the index.

    Also - image uploading does seem to be working correctly from what I can tell.

    Any pointers would be MUCH appreciated.

    Here is my template code, much of it copied over from part of AgileRecords:

    {if segment_2 != ''}
      {redirect="404"}
    {/if}
    {html_head}
        <title>{site_name}</title>
    {global_stylesheets}
    {rss} 
    {favicon}
    {html_head_end}    
        <body>
        {nav_access}
        {branding_begin}
                {embed="global_embeds/.top_nav" loc="home"}
                {global_top_search}
                {global_top_member}
        {branding_end}
        {wrapper_begin}
    {embed="global_embeds/.page_header" header="Artists"}    
    
    
        <div id="content_pri"> 
            
            <!-- This is where all primary content, left column gets entered -->
            <!--  This is the channel entries tag.  Documentation for this parameter can be found at <a href="http://ellislab.com/expressionengine/user-guide/modules/channel/channel_entries.html">http://ellislab.com/expressionengine/user-guide/modules/channel/channel_entries.html</a>
                     Parameter Explanation:
            channel= which channel to output, multiple channels may be piped in (channel_1|channel_2)
            limit= limits the number of entries output in this instance of the tag
            disable= turns off parsing of un-needed data -->
            
            {exp:channel:entries channel="artists"  }
            
            <!-- if no_results is a conditional variable, it can not be combined with advanced conditionals.  <a href="http://ellislab.com/expressionengine/user-guide/modules/channel/conditional_variables.html#cond_if_no_results">http://ellislab.com/expressionengine/user-guide/modules/channel/conditional_variables.html#cond_if_no_results</a> -->
            
            {if no_results}Sample No Results Information{/if}
            {if count == "1"}
            <h3 class="artists">Artists</h3>
            <ul id="Artists">
            {/if}
                <li>
                    <h4><a href="http://{comment_url_title_auto_path}">{title}</a> </h4>
    <p>                <br />
                    <!-- the following two lines are custom channel fields. <a href="http://ellislab.com/expressionengine/user-guide/cp/admin/channel_administration/custom_channel_fields.html">http://ellislab.com/expressionengine/user-guide/cp/admin/channel_administration/custom_channel_fields.html</a> --><br />
                    {if artist_featured_image}<br />
                        {artist_featured_image}<br />
                    {/if}</p>
    
    <p>                {artist_description}<br />
                    </p>
    
    <p>            </li><br />
            {if count == total_results}</ul>{/if}<br />
            {/exp:channel:entries}<br />
            </p>
    
    
    
    <p>    </div></p>
    
    <p><br />
        <br />
    {global_footer}<br />
    {wrapper_close}<br />
    {js}<br />
    {html_close}

  • #2 / Feb 28, 2011 5:20pm

    jafoca

    1 posts

    An update to EE 2.1.3 has solved this issue for me.

  • #3 / Feb 28, 2011 5:35pm

    Ingmar

    29245 posts

    Thanks for letting us know. Please post again as needed.

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

ExpressionEngine News!

#eecms, #events, #releases