Page 1 of 1

LISE - trying to convert a slider with module

Posted: Sun Sep 11, 2016 9:02 pm
by rbaby
Hi guys,

Been trying to see if there's an easier way to manage a slider with LISE and playing around with it. There are a couple of snags I couldn't quite figure out...

My slider requires that the first item be set to a class "active"...how do I set it if the item is first, add the active class?

It also requires an indicator of how many slides there are - there is a <ol> container like:

<ol class="carousel-indicators">
<li data-target="#main-slide" data-slide-to="0" class="active"></li>
<li data-target="#main-slide" data-slide-to="1"></li>
<li data-target="#main-slide" data-slide-to="2"></li>
</ol>

How can I add an additional numbered item automatically per every items in the list?

Lastly, how do I have different template/logic based on a selection--like if I populated a list with:

- Animate Left
- Animate Right
- No Animation

In my template, if it was selected as Animate Right, it would use a different layout vs No Animation.

Lastly, how do I set it so that only display this if it's not empty on a non-required field? So if I have a field called "Sub-text", only display the tag and field if it's actually been filled out.

Thank you--sorry for the noob questions :(...appreciate any help and guidance.

Re: LISE - trying to convert a slider with module

Posted: Mon Sep 12, 2016 9:39 am
by velden
Look here: http://www.smarty.net/docs/en/language. ... oreach.tpl

@index, @iteration etc. etc.