Page 1 of 1
Try to call another module in LISE description ara - not working
Posted: Tue Aug 26, 2025 5:51 pm
by map_1961
Hi i work with current LISE version on current core installtion to display various content in modal mode.
In descrition area i placed a module cal like: {cms_module module=StreamingManager id="2" width="600" height="300"}.
It works fine in news detail description for example but in LISE....
the code is displayed only - the module is not woking at this place i call it.
Thx 4 help
MAP
Re: Try to call another module in LISE description ara - not working
Posted: Tue Aug 26, 2025 7:04 pm
by DIGI3
In your LISE template, you'll need to use {eval} to make it parse any Smarty in that variable, e.g. {eval var=$item->myfieldname}
Re: Try to call another module in LISE description ara - not working
Posted: Tue Aug 26, 2025 7:37 pm
by map_1961
Sorry i don't understand. In content or in template?
set {eval} {module cal} {/eval} in content does not work.
Thx. MAP
Re: Try to call another module in LISE description ara - not working
Posted: Tue Aug 26, 2025 7:38 pm
by DIGI3
In your LISE summary/detail template(s).
Re: Try to call another module in LISE description ara - not working
Posted: Tue Aug 26, 2025 7:42 pm
by map_1961
Where to place? This is the tempklate:
<!--creative-bootstrap-carousel-->
<section class="no-padding" id="portfolio">
<div class="container-fluid">
<div class="row no-gutter">{foreach from=$items item=citem name=citem}
<div class="col-lg-4 col-sm-6">
<!-- <a class="portfolio-box" href="#portfolioModal{$smarty.foreach.citem.index}" data-toggle="modal" data-id="video-{$smarty.foreach.citem.index}"> -->
<div class="portfolio-box-headline">
<div class="project-name"> {$citem->title}
</div>
</div>
<a class="portfolio-box" href="#portfolioModal{$smarty.foreach.citem.index}" data-toggle="modal" data-id="video-{$smarty.foreach.citem.index}">
<img class="img-responsive" data-caption="{$citem->title}" src="{SmartImage src1="uploads/images/leistungen/" src2=$citem->fielddefs.photo.value|cms_escape alias1='medium' notag=1 filter_watermark=1}" alt="{$citem->alt|cms_escape}" /> <div class="portfolio-box-caption">
<div class="portfolio-box-caption-content">
<div class="project-category text-faded">{foreach from=$citem->fielddefs item=fielddef}
{if $fielddef.type == 'Categories' && ($fielddef.value != '')}
{LISELoader item='category' force_array=1 value=$fielddef.value assign='cats'}
<!-- categories -->
{$cats|implode:','}
<!-- eof categories //-->{/if}
{/foreach}
</div><!-- eof project-category //-->
<div class="project-name">
{$citem->title}
</div><!-- eof project-name //-->
</div><!-- eof portfolio-box-caption-content //-->
</div><!-- eof portfolio-box-caption //-->
</a>
</div><!-- eof col //-->
<!-- Portfolio Modal {$smarty.foreach.citem.index} -->
<div class="portfolio-modal modal fade" id="portfolioModal{$smarty.foreach.citem.index}" tabindex="-1" role="dialog" aria-hidden="true">
<div class="modal-content">
<div class="close-modal" data-dismiss="modal" data-id="video-{$smarty.foreach.citem.index}">
<div class="lr">
<div class="rl">
</div><!-- eof rl //-->
</div><!-- eof lr //-->
</div><!-- eof close-modal //-->
<div class="container">
<div class="row">
<div class="col-lg-8 col-lg-offset-2">
<div class="modal-body">
<!-- Project Details Go Here -->
<h2>{$citem->title}</h2>{if $citem->video != ''}
<video id="video-{$smarty.foreach.citem.index}" class="videoPlayer" preload controls>
<source src="{$citem->video}" type="video/mp4" autostart="false">
<p>Your browser does not support the video tag.</p>
</video>{else}
<img class="img-responsive img-centered" src="{SmartImage src1="uploads/images/leistungen/" src2=$citem->fielddefs.photo.value|cms_escape alias1='medium' notag=1 filter_watermark=1}" alt="{$citem->alt|cms_escape}" />{/if}
{$citem->description}
<ul class="list-inline">
<!-- {if $citem->modified_time !=''}<li><i class="fa fa-calendar"></i> {$citem->modified_time}</li>{/if} -->
<li>
<i class="fa fa-tag"></i>{strip}
{foreach from=$citem->fielddefs item=fielddef}
{if $fielddef.type == 'Categories' && ($fielddef.value != '')}
{LISELoader item='category' force_array=1 value=$fielddef.value assign='cats'}
{$cats|implode:','}
{/if}
{/foreach} {/strip}
</li>{if $citem->fielddefs.url.value !=''}
<li>
<i class="fa fa-link"></i>
<a href="{$citem->fielddefs.url.value}" target="_blank">
video & more about....
</a>
</li>{/if}
</ul><!-- eof list-inline //-->
<button type="button" class="btn btn-primary close-modal-video" data-dismiss="modal">
<i class="fa fa-times"></i>
back
</button>
</div><!-- eof modal-body //-->
</div><!-- eof col //-->
</div><!-- eof row //-->
</div><!-- eof container //-->
</div><!-- eof modal-content //-->
</div><!-- eof #portfolio-modal //--> {/foreach}
</div>
</div><!-- eof no-gutter //-->
</section>
Re: Try to call another module in LISE description ara - not working
Posted: Tue Aug 26, 2025 7:47 pm
by DIGI3
I'm assuming this tag is in the description field, so change:
to
If it's a different field or you expect Smarty in another field, use eval on those too.
SOLVED Try to call another module in LISE description ara - not working
Posted: Tue Aug 26, 2025 7:52 pm
by map_1961
You are GREAT GREAT GREAT
Thank you so much.
MAP