brentnl wrote:Can't seem to find out which function is triggering the echoing of those numbers. I guess it has something to do with {$item_count++}; what are those '++' for?
Yup, that tag will print and increment the variable... you probably want to assign it to something other var to prevent printing, something like
{$foo=$item_count++} it will still increment it but prevent printing.
brentnl wrote:And is it possible to pass the 'max_items' variable within the call of LISE? Otherwise I would have to make a different template for different numbers (it depends on the page).
For Example;
{LISETestimonial template_summary='testimonial-salon' max_items='4'}
Nope, it will be ignored by CMSMS and by any module it's a security limitation, modules will only accept parameters known to them (typically documented on the module's help).
brentnl wrote:I solved this part with a little workaround; I removed max_items from the template and assigned the 'max_items' variable from outside the module, and then call LISE. Don't know if it's the most beautiful/practical solution, but it works
Code: Select all
{assign var='max_items' value='5'}
{LISETestimonials template_summary='testimonial-salon'}
Just a heads up: that might stop working in the near future because of smarty var scopes and how LISE renders it's templates. That may change at some point in the future. You may want to use a global scope for that variable but lookout for possible overwrites on complex templates that might use the same variable in several sub-templates or module templates.