Create nice News Rotator with CMSMS News module and jQ Cycle
Posted: Sat Jul 13, 2013 1:30 pm
I find this from Goran Ilic Blog:
http://www.i-do-this.com/blog/21/Create ... cle-plugin
Trying to run this and reading all coments, I have this working with my cmsms 1.11.7 some minor changes, great article.
Add missing </div>
Deprecreated {Supersizer...}
Include {CGSmartimage ...}
Left Titles limited to 22 characters and linked to detail news page
Sugested correction to manage arrays.
I hope this help someone, you can see it here live: ( http://www.xcristo.net/news ):
News module Summary Template: summarySlider
<div class="sliderWrapper">
<div class="sliderInner">
<div class="info">
<ul id="navigation">
{foreach from=$items item=entry}
{assign var=post value=$entry->id}
{* assign var=img value=$entry->sliderbig *}
{assign var=img value=$entry->fieldsbyname.SliderBig->value}
<li><a href="{$entry->moreurl}">{if isset($entry->fieldsbyname.SliderBig)}<span class="imageThumb">
{* supersizer path="uploads/news/id$post/$img" width=40 height=40 alt=$entry->title|cms_escape:htmlall *}
{CGSmartImage src="uploads/news/id$post/$img" width="40" height="40" alt=$entry->title|cms_escape:htmlall}
</span>{/if}<span class="postTitle">{$entry->title|substr:0:22|cms_escape}</span></a></li>
{/foreach}</ul>
</div>
<div class="summaryWrapper">
<div class="summaryContent">
{foreach from=$items item=entry}
<div><h2><a href="{$entry->moreurl}" title="{$entry->title|cms_escape:htmlall}">{$entry->title|cms_escape}</a></h2>
<span class="date">{if $entry->postdate}{$entry->postdate|cms_date_format}{/if}</span>
{$category_label}{$entry->category}
{if $entry->author}{$author_label}{$entry->author}{/if}<br />
{if $entry->summary}{eval var=$entry->summary}
{else if $entry->content}{eval var=$entry->content}{/if}
</div>{/foreach}
</div>
<div class="summaryImage">
{foreach from=$items item=entry}
{assign var=post value=$entry->id}
{* assign var=img value=$entry->sliderbig *}
{assign var=img value=$entry->fieldsbyname.SliderBig->value}
<div>
{if isset($entry->fieldsbyname.SliderBig)}
{* supersizer path="uploads/news/id$post/$img" width=675 height=350 alt=$entry->title|cms_escape:htmlall *}
{CGSmartImage src="uploads/news/id$post/$img" filter_croptofit='675,350,c,upscale' alt=$entry->title|cms_escape:htmlall}
{/if}
</div>{/foreach}
</div>
</div>
</div>
</div>
http://www.i-do-this.com/blog/21/Create ... cle-plugin
Trying to run this and reading all coments, I have this working with my cmsms 1.11.7 some minor changes, great article.
Add missing </div>
Deprecreated {Supersizer...}
Include {CGSmartimage ...}
Left Titles limited to 22 characters and linked to detail news page
Sugested correction to manage arrays.
I hope this help someone, you can see it here live: ( http://www.xcristo.net/news ):
News module Summary Template: summarySlider
<div class="sliderWrapper">
<div class="sliderInner">
<div class="info">
<ul id="navigation">
{foreach from=$items item=entry}
{assign var=post value=$entry->id}
{* assign var=img value=$entry->sliderbig *}
{assign var=img value=$entry->fieldsbyname.SliderBig->value}
<li><a href="{$entry->moreurl}">{if isset($entry->fieldsbyname.SliderBig)}<span class="imageThumb">
{* supersizer path="uploads/news/id$post/$img" width=40 height=40 alt=$entry->title|cms_escape:htmlall *}
{CGSmartImage src="uploads/news/id$post/$img" width="40" height="40" alt=$entry->title|cms_escape:htmlall}
</span>{/if}<span class="postTitle">{$entry->title|substr:0:22|cms_escape}</span></a></li>
{/foreach}</ul>
</div>
<div class="summaryWrapper">
<div class="summaryContent">
{foreach from=$items item=entry}
<div><h2><a href="{$entry->moreurl}" title="{$entry->title|cms_escape:htmlall}">{$entry->title|cms_escape}</a></h2>
<span class="date">{if $entry->postdate}{$entry->postdate|cms_date_format}{/if}</span>
{$category_label}{$entry->category}
{if $entry->author}{$author_label}{$entry->author}{/if}<br />
{if $entry->summary}{eval var=$entry->summary}
{else if $entry->content}{eval var=$entry->content}{/if}
</div>{/foreach}
</div>
<div class="summaryImage">
{foreach from=$items item=entry}
{assign var=post value=$entry->id}
{* assign var=img value=$entry->sliderbig *}
{assign var=img value=$entry->fieldsbyname.SliderBig->value}
<div>
{if isset($entry->fieldsbyname.SliderBig)}
{* supersizer path="uploads/news/id$post/$img" width=675 height=350 alt=$entry->title|cms_escape:htmlall *}
{CGSmartImage src="uploads/news/id$post/$img" filter_croptofit='675,350,c,upscale' alt=$entry->title|cms_escape:htmlall}
{/if}
</div>{/foreach}
</div>
</div>
</div>
</div>