aitomic-o-partners1
v2.0.1
Published
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 car
Downloads
184
Readme
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="d-block" width="300" height="190" loading="lazy">
</a>
{/define}
Check {latte} source template in folder 'control' to discover available hooks to customization.