Help with news module! [SOLVED]
Posted: Tue Apr 05, 2011 5:00 pm
Hello all!
Something really funky is going on with my news module.
I have it set up so the summary only shows the date and title but 2 of my articles are showing the ENTIRE article in the summary. Please note the 8/9/2009 article - http://www.attorneygaudreau.com/gaudreau-news.html
I hid the other article as it was blowing up the teasers on the home page.
What blows my mind is why would most of the articles appear fine except for these 2? I looked at the article setup and nothing stands out.
I hope someone has experienced this and has a solution. I've pasted my summary code below.
Thanks so much!
Len
<!-- Start News Display Template -->
{if $pagecount > 1}
<!--<p>
{if $pagenumber > 1}
{$firstpage} {$prevpage}
{/if}
{$pagetext} {$pagenumber} {$oftext} {$pagecount}
{if $pagenumber < $pagecount}
{$nextpage} {$lastpage}
{/if}
</p>-->
{/if}
{foreach from=$items item=entry}
<div class="NewsSummary">
{if $entry->postdate}
<div class="NewsSummaryPostdate">
{$entry->postdate|cms_date_format}
</div>
{/if}
<div class="NewsSummaryLink">
<strong>{$entry->title|cms_escape}</strong>
</div>
<!--<div class="NewsSummaryCategory">
{$category_label} {$entry->category}
</div>
{if $entry->author}
<div class="NewsSummaryAuthor">
{$author_label} {$entry->author}
</div>
{/if}-->
{if $entry->summary}
<!--<blockquote>
{eval var=$entry->summary}
</blockquote>-->
<div style="padding-bottom:10px;" class="NewsSummaryMorelink">
[{$entry->morelink}]
</div>
{else if $entry->content}
<blockquote>
{eval var=$entry->content}
</blockquote>
{/if}
{if isset($entry->extra)}
<div class="NewsSummaryExtra">
{eval var=$entry->extra}
{* {cms_module module='Uploads' mode='simpleurl' upload_id=$entry->extravalue} *}
</div>
{/if}
{if isset($entry->fields)}
{foreach from=$entry->fields item='field'}
<div class="NewsSummaryField">
{if $field->type == 'file'}
<img src="{$entry->file_location}/{$field->value}"/>
{else}
{$field->name}: {eval var=$field->value}
{/if}
</div>
{/foreach}
{/if}
</div>
{/foreach}
<!-- End News Display Template -->
Something really funky is going on with my news module.
I have it set up so the summary only shows the date and title but 2 of my articles are showing the ENTIRE article in the summary. Please note the 8/9/2009 article - http://www.attorneygaudreau.com/gaudreau-news.html
I hid the other article as it was blowing up the teasers on the home page.
What blows my mind is why would most of the articles appear fine except for these 2? I looked at the article setup and nothing stands out.
I hope someone has experienced this and has a solution. I've pasted my summary code below.
Thanks so much!
Len
<!-- Start News Display Template -->
{if $pagecount > 1}
<!--<p>
{if $pagenumber > 1}
{$firstpage} {$prevpage}
{/if}
{$pagetext} {$pagenumber} {$oftext} {$pagecount}
{if $pagenumber < $pagecount}
{$nextpage} {$lastpage}
{/if}
</p>-->
{/if}
{foreach from=$items item=entry}
<div class="NewsSummary">
{if $entry->postdate}
<div class="NewsSummaryPostdate">
{$entry->postdate|cms_date_format}
</div>
{/if}
<div class="NewsSummaryLink">
<strong>{$entry->title|cms_escape}</strong>
</div>
<!--<div class="NewsSummaryCategory">
{$category_label} {$entry->category}
</div>
{if $entry->author}
<div class="NewsSummaryAuthor">
{$author_label} {$entry->author}
</div>
{/if}-->
{if $entry->summary}
<!--<blockquote>
{eval var=$entry->summary}
</blockquote>-->
<div style="padding-bottom:10px;" class="NewsSummaryMorelink">
[{$entry->morelink}]
</div>
{else if $entry->content}
<blockquote>
{eval var=$entry->content}
</blockquote>
{/if}
{if isset($entry->extra)}
<div class="NewsSummaryExtra">
{eval var=$entry->extra}
{* {cms_module module='Uploads' mode='simpleurl' upload_id=$entry->extravalue} *}
</div>
{/if}
{if isset($entry->fields)}
{foreach from=$entry->fields item='field'}
<div class="NewsSummaryField">
{if $field->type == 'file'}
<img src="{$entry->file_location}/{$field->value}"/>
{else}
{$field->name}: {eval var=$field->value}
{/if}
</div>
{/foreach}
{/if}
</div>
{/foreach}
<!-- End News Display Template -->