Link multiple LISE items to a page
Posted: Mon Oct 08, 2018 9:43 pm
I've had a previous question about LISE in this topic but unfortunately it's closed now.
I've managed to display a single LISE item at a content page using CGContentUtilities, where it's possible to select the item while editing the page itself.
But now my client wants the possibility to display multiple items at one page. I've changed the CGCU dropdown into an 'multiselection' , which works fine for selection, but I don't know how to proceed at the page-template to display the info of 2 or more items.
Snippet of the page template;
Do I need to implement some kind of {foreach} array?
I've managed to display a single LISE item at a content page using CGContentUtilities, where it's possible to select the item while editing the page itself.
But now my client wants the possibility to display multiple items at one page. I've changed the CGCU dropdown into an 'multiselection' , which works fine for selection, but I don't know how to proceed at the page-template to display the info of 2 or more items.
Snippet of the page template;
Code: Select all
<div class="card-body">
{content_module module='CGContentUtils' block='team_items' assign=specialist}
{LISETeam item=$specialist template_detail=empty action=detail}
{capture assign="teamfoto"}uploads/images/team/{$LISEitem->foto}{/capture}
<div class="row">
<div class="col-lg-5 no-padding-right">
<img src="{CGSmartImage src=$teamfoto filter_croptofit="250,250,c" notag=1 noembed=1}" class="img-fluid rounded-circle"/>
</div>
<div class="col-lg-7 extrapadding">
<h3>{$LISEitem->title}</h3>
<span>{$LISEitem->fielddefs['achternaam']->value}</span>
</div>
</div>
</div>