CMSMS V0.13 News Module has a bug which causes an error string(43) "Smarty error: eval: missing 'var' parameter" to be displayed when a news item is viewed in the detail template. This seems to be pretty widespread and is currently affecting one of my client CMSMS websites. It affects even the standard (default) news templates.
You can see the problem in action at http://www.mraqld.org and click on any news item in the righthand feature panel.
I suspect it is a problem handling a specific character but I am not really sure what the 'var' parameter does, except that if I remove it, nothing is displayed at all.
My news detail template is as follows:
Code: Select all
<h3 id="NewsPostDetailTitle">{eval var=$entry->title}</h3>
<hr id="NewsPostDetailHorizRule">
{if $entry->formatpostdate}
<p id="NewsPostDetailDate">
{$entry->formatpostdate}
</p>
{/if}
<p id="NewsPostDetailContent">
{eval var=$entry->content}
</p>
<p id="NewsPostDetailPrintLink">
{$entry->printlink}
{if $return_url != ""}
| {$return_url}
{/if}
| {cms_selflink page='30' text='See more news'}
</p>
{cms_module module="comments" modulename="News" pageid=$entry->id emailfield=1 websitefield=1 spamprotect=1 notify="president@mraqld.org"}Code: Select all
{cms_module module='news' number='3' moretext='Read article' dateformat='%d/%m/%Y' detailpage='latest_news'} Code: Select all
{cms_module module='news' dateformat='%d/%m/%Y' entry='content' detailpage='latest_news' returntext='Back to Latest News' moretext='Read article'}
TonyG
www.mraqld.org

