My goal is to create a carousel based on the news template from CMSMS 2.x without relying on third party module. Rather than directly uploading the image, I would like to access to uploaded directory where I can chose.
Here is an extract of code
Code: Select all
<div class="uk-slidenav-position uk-margin-remove" data-uk-slideshow="{autoplay:true}">
<ul class="uk-slideshow uk-text-center">
{foreach from=$items item=entry}
<li>
<div class="uk-cover-background">
<img src="{$entry->file_location}/{$field->value}"/>
</div>
<div class="csd-news-summary uk-overlay uk-overlay-background uk-position-cover uk-flex uk-flex-center uk-flex-middle uk-flex-column">
<h4>{$category_label} {$entry->category}</h4>
<h1 class="uk-heading-large uk-margin-large-bottom">Welcome to the<br class="uk-hidden-small"><a href="{$entry->moreurl}" title="{$entry->title|cms_escape:htmlall}">{$entry->title|cms_escape}</a> </h1>
<a class="uk-button uk-button-large" href="http://www.pagekit.com">[{$entry->morelink}]</a>
</div>
</li>
{/foreach}
</ul>
<a href="#" class="uk-slidenav uk-slidenav-contrast uk-slidenav-previous" data-uk-slideshow-item="previous"></a>
<a href="#" class="uk-slidenav uk-slidenav-contrast uk-slidenav-next" data-uk-slideshow-item="next"></a>
</div>