Hi there,
I am a newbie trying to learn some basic modx/development. I am in UX and love it as a CMS (creating structured content with TVs), but want to try and learn how to do more on my own and help take small tasks away from the developers.
We are working on a site that allows users to create their own pages and upload photos to appear in their own hero slider. I have setup a JS slider to rotate through max 10 photos that I've setup as Template Variables.
What I'm looking for help is to hide any photo TVs where an image wasn't uploaded. For example, if a user only uploaded 8 photos and not 10, how to hide the 9th and 10th. Right now TV photo 9 and TV photo 10 show as a grey background colour.
This is what the code looks like in the template.
<div class="item">[[*photo_1]]</div>
<div class="item">[[*photo_2]]</div>
<div class="item">[[*photo_3]]</div>
<div class="item">[[*photo_4]]</div>
<div class="item">[[*photo_5]]</div>
<div class="item">[[*photo_6]]</div>
<div class="item">[[*photo_7]]</div>
<div class="item">[[*photo_8]]</div>
<div class="item">[[*photo_9]]</div>
<div class="item">[[*photo_10]]</div>
Thanks,