We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 38723
    • 165 Posts

    Beat me to it by a minute!

    Although worth noting that code would need altering to have a sensible default if the SlideOneSrc tv is empty, such as a placeholder li with an img in it.

    Quote from: eighthday at Mar 04, 2013, 04:16 AM
    I think the most efficient way to do this is:
    [[*SlideOneSrc:default=`[[*SlideOneSrc]]`]]

      • 42901 ☆ A M B ☆
      • 73 Posts
      Now that I have successfully figured out MIGX - the better solution was to use that instead of relying on conditional statements to handle things - Especially for working with a slideshow.

                [[!getImageList?
      		&tvname=`myTV.Name`
      		&tpl=`@CODE:<li>
      		<a href="[[+link]]"><img src="[[+image]]" alt="[[+name]]"/></a>
      		<p>[[+description]]</p>
      		</li>`]]
      


      Light switches are now going off in my brain allowing me to realize just how powerful MODX really is!
      Thank you everybody for your excellent help!
        Woodlands Ad Agency
        Our blog should NOT be read by anyone....EVER http://woodlandsadagency.com/blog/
        ...Don't say we didn't warn you.
        • 28042 ☆ A M B ☆
        • 24,524 Posts
        MIGx and MIGXdb are definitely the "killer app" for MODx. Now if I could only get my hands on that MIGx MyComponent UI!
          Studying MODX in the desert - http://sottwell.com
          Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
          Join the Slack Community - http://modx.org