News Displaying Detail Template Incorrectly from Home Page..
Posted: Thu Jul 05, 2012 4:40 pm
CMSMS 1.10.3 "Hyacinthe"
News 2.12.3
I'm having the following issue with the News Module displying a news template incorrectly. I'm using a Field Definition to add an extra content block for users to add images. I'm displaying the col to the right of the content using a class called "col-side-case-studies". I would rather not put the structure in the content block.
Any help or advise would be great. - Shane
Display Template
Home Page
http://netdes.com under News
This displays the template incorrectly.
{news category="Press Releases" number="1" detailpage="press-releases" detailtemplate="press-releases"}
If you notice it has a different DB record (72) then the link from the Press Releases Page
http://netdes.com/news/29/73/Announcing ... releases/
Press Releases
http://netdes.com/press-releases/
{news category="Press Releases" detailpage="press-release-results" detailtemplate="press-releases"}
This displays the template correctly.
If you notice however it has a different DB record (98) then the link from the home page
http://netdes.com/news/29/98/Announcing ... -releases/
News 2.12.3
I'm having the following issue with the News Module displying a news template incorrectly. I'm using a Field Definition to add an extra content block for users to add images. I'm displaying the col to the right of the content using a class called "col-side-case-studies". I would rather not put the structure in the content block.
Any help or advise would be great. - Shane
Display Template
Code: Select all
{if isset($entry->canonical)}
{assign var='canonical' value=$entry->canonical}
{/if}
<div class="col-content">
<h3>{$entry->title|cms_escape:htmlall}</h3>
{eval var=$entry->content}
<div class="back"><a href="/press-releases/">Back to Press Releases</a></div>
</div>
{if isset($entry->fields)}
{foreach from=$entry->fields item='field'}
<div class="col-side-case-studies">
{if $field->type == 'file'}
<img src="{$entry->file_location}/{$field->value}"/>
{else}
{eval var=$field->value}
{/if}
</div>
{/foreach}
{/if}
Home Page
http://netdes.com under News
This displays the template incorrectly.
{news category="Press Releases" number="1" detailpage="press-releases" detailtemplate="press-releases"}
If you notice it has a different DB record (72) then the link from the Press Releases Page
http://netdes.com/news/29/73/Announcing ... releases/
Press Releases
http://netdes.com/press-releases/
{news category="Press Releases" detailpage="press-release-results" detailtemplate="press-releases"}
This displays the template correctly.
If you notice however it has a different DB record (98) then the link from the home page
http://netdes.com/news/29/98/Announcing ... -releases/