Slideshow - Menucool

3 posts by 2 authors in: Forums > CMS Builder
Last Post: March 7, 2015   (RSS)

By rconring - March 7, 2015

I am not familiar with this particular slideshow script, but if all you need to do is echo the contents of the info1 field then simply add the alt attribute to the img tag and echo the contents of the info1 field within the quotes:

<img alt="<?php echo $image['info1'] ?>" src="<?php echo $image['thumbUrlPath'];?>" /> 

If the rendering script does not handle a blank alt attribute (alt=""), then you may have to conditionally display the alt attribute only if it contains data.

<?php if($image['info1']): ?>
  <img alt="<?php echo $image['info1'] ?>" src="<?php echo $image['thumbUrlPath'];?>" />
<?php else: ?>
  <img src="<?php echo $image['thumbUrlPath'];?>" />
<?php endif ?>

Hope this works for you!

Ron Conring
Conring Automation Services
----------------------------------------
Software for Business and Industry Since 1987

Thank you ... works with a bit of modification to css.

Much appreciated.