I am trying to use FileLister to list image files in a directory to create a lightbox. I have it working
except I need to add a class to the first li, and I need to modify the phpthumbof dimension for the first thumbnail.
Everything I have tried to do to alter that first row has failed. Can't get the first class property to work although it exists in the snippet.
To modify the phpthumbof on the first thumbnail I tried
but no luck with that. Wondering about the IF snippet but still unsure how to grab that first row.
This is my snippet call:
[[!FileLister?
&path=`../ew/[[*reportFolder]]/`
&fileTpl=`HMtplFile`
&showDirectories=`0`
&showExt=`jpg,png,gif`
&placeholderPrefix=``
&firstCls=`first`]]
This is the
HMtplFile chunk:
<li class="th fix-height [[+firstCls]]">
<a href="[[phpthumbof? &input=`[[+path]]` &options=`&w=1000&h=750&zc=1`]]">
<img src="[[+idx:is=`1`:then=`[[phpthumbof? &input=`[[+path]]` &options=`&w=380&h=300&zc=1`]]`:else=`[[phpthumbof? &input=`[[+path]]` &options=`&w=150&h=100&zc=1`]]`]]">
</a>
</li>