1.0.2 • Published 5 years ago
aitomic-o-partners1 v1.0.2
A template of a list of partners. There are prepared styles of display as grid and carousel. Include the grid template (stored in folder named 'control') in module GenericList using macro {layout '../path-to-latte-template'}
. To display component as carousel in module GenericList, import {latte} block from package 'o-carousel' using macro {import '../path-to-latte-template'}
and declare this block as {include #blockName}
. Between macros {import}
and {include}
you can redefine used blocks like this:
{define #carouselItem}
<a n:tag-if="$item->link" href="{$item->link}" n:attr="target => $item->blank ? '_blank'">
<img src="{thumbnail $item->thumb, 300x190, EXACT, $item->thumb->filename}" class="lazyload">
</a>
{/define}
Check {latte} source template in folder 'control' to discover available hooks to customization.