CGSmartImage 1.9.5
CGExtensions 1.31.1
JQueryTools 1.1.1
(Although all of these are currently being updated to the latest versions)
I have a news scroller based on the one from http://www.i-do-this.com/blog/21/Create ... cle-plugin which has worked wonderfully for ages, I am now updating my site and as the Supersizer plugin is stale in the Forge, and it doesn't work with the new versions of CMSMS I'd like to use Calguy's CGSmartImage, just having a bit of trouble getting my main news scroller image to work, everything else works wonderfully, any Ideas?
Code: Select all
<div class="sliderWrapper">
<div class="sliderInner">
<div class="summaryImage">
{foreach from=$items item=entry}
{assign var=post value=$entry->id}
{assign var=file value=$entry->sliderbig}
<div style="width:749px;">
{if isset($entry->fieldsbyname.sliderbig)}
{CGSmartImage src='uploads/news/id$post/$file' filter_croptofit='749,350,c,upscale' alt=$entry->title|cms_escape:htmlall}
{/if}
</div>
{/foreach}
</div>
<div class="info">
<ul id="navigation">{foreach from=$items item=entry}{assign var=post value=$entry->id}
<li>
<h1><a href="{$entry->moreurl}" title="{$entry->title|cms_escape:htmlall}">{$entry->title|truncate:30|cms_escape}</a></h1>
<p>{if $entry->summary}{eval var=$entry->summary|truncate:40}
{else if $entry->content}{eval var=$entry->content|truncate:40}{/if}</p>
<p><a href="{$entry->moreurl}" title="{$entry->title|cms_escape:htmlall}">read more...</a></p>
</li>
{/foreach}</ul>
<ul id="all-news">
<li>
<h1><a href="{root_url}/news.html" title="All news stories">All news stories</a></h1>
</li>
</ul>
</div>
</div>
</div>