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}