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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

DataObjectManager Module /

Discuss the DataObjectManager module, and the related ImageGallery module.

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

if no photos in album then no link through


Go to End


4 Posts   1152 Views

Avatar
zim

Community Member, 135 Posts

12 May 2010 at 7:09am

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

Forum Moderator, 4102 Posts

12 May 2010 at 9:05am

Sure. Can we see your code?

Avatar
zim

Community Member, 135 Posts

12 May 2010 at 10:09am

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

Avatar
zim

Community Member, 135 Posts

12 May 2010 at 10:10am

hey uncle cheese just figured it out.

thanks