News Displaying Detail Template Incorrectly from Home Page..

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
User avatar
sugna
Forum Members
Forum Members
Posts: 196
Joined: Wed Oct 10, 2007 3:04 pm

News Displaying Detail Template Incorrectly from Home Page..

Post by sugna »

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

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/
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: News Displaying Detail Template Incorrectly from Home Pa

Post by Dr.CSS »

The first number is the article ID 29 the second number is most likely the ID of the detail page or return ID...
Post Reply

Return to “CMSMS Core”