As I said before, you need to troubleshoot this as much as possible... for instance remove or comment out the {if...}{/if}
Code: Select all
<ul>
{foreach from=$items item='entry'}
{$entry|print_r:0}
{*if isset($entry->fields.story)*}
<li>
<a href="{$entry->moreurl}" title="{$entry->title|cms_escape:htmlall}">{eval var=$entry->fields.story->value}</a></li>
{*/if*}
{/foreach}
</ul>
You need to explore everything possible from a simple default template to the one you want as final. Add up to it or change it bit by bit.
Alternatively try to backup your template and use the default sample template. If a default template, renamed to
Test and called like
{news summarytemplate='Test' detailpage='newsletter-page'} works then you have a problem with the 'Stories' template almost for sure.
applejack wrote:Re: IIRC the fieldsbyname has been deprecated.
Thanks for letting me know. Since when as I don't have a site running the latest version of CMS using it, latest is 1.11.7.
You are welcome. I can say that it changed in
News 2.12 because it is stated so in the default details template comments.
applejack wrote:If that is the case it is pretty stupid and one reason why I'm getting peed off with CMS as there are too many changes with not enough thought given to backward compatibility but that's for a discussion elsewhere.
It is indeed a discussion for elsewhere.