LISE - trying to convert a slider with module

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Locked
rbaby
Forum Members
Forum Members
Posts: 144
Joined: Thu Feb 07, 2008 10:28 pm

LISE - trying to convert a slider with module

Post 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.
User avatar
velden
Dev Team Member
Dev Team Member
Posts: 3497
Joined: Mon Nov 28, 2011 9:29 am

Re: LISE - trying to convert a slider with module

Post by velden »

Look here: http://www.smarty.net/docs/en/language. ... oreach.tpl

@index, @iteration etc. etc.
Locked

Return to “Modules/Add-Ons”