Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

DataObjectManager Module

Discuss the DataObjectManager module, and the related ImageGallery module.

Moderators: martimiz, UncleCheese, Sean, biapar, Willr, Ingo, swaiba, simon_w

if no photos in album then no link through


Reply

4 Posts   756 Views

Avatar
zim

12 May 2010 at 7:09am Community Member, 135 Posts

I have a section on my site which displays many company thumbs that link through to album pages with pictures of that company's products... however some of these company's do not have any products.

Is it possible that on these company thumbs there is no link through to next page?? so if no album pictures no link on thumb.

Avatar
UncleCheese

12 May 2010 at 9:05am 4085 Posts

Sure. Can we see your code?

Avatar
zim

12 May 2010 at 10:09am Community Member, 135 Posts

the answer is simply to put the following if statement around the href tag
<% if GalleryItems %>

Avatar
zim

12 May 2010 at 10:10am Community Member, 135 Posts

hey uncle cheese just figured it out.

thanks