What if clauses

4 posts by 2 authors in: Forums > CMS Builder
Last Post: September 9, 2008   (RSS)

Hi

In a recent site you helped me with you put in a 'what if' clause. This enabled the page to put in a link to a gallery only when pictures are added to the page on the back end I need to do a similar thing with the present site I'm doing. In other words some shows will have pictures and some won't and I need the >>gallery link to only become active if they upload pictures.

Could you tell me what code I need to add to achieve this please? Many thanks.

Re: [Dave] What if clauses

what I'm after is for it to just show a link to a gallery page if there are pictures and not show the link if there are no pics.

The gallery would show in a fresh page. How would I set that up?

Re: [chassa2556] What if clauses

By Dave - September 9, 2008

Do you have the gallery page setup already? You'd want to create that first. Then get the link working to open in a new page. Then wrap it in the if tags above so it only shows when there actually are images.

Hope that helps!
Dave Edis - Senior Developer
interactivetools.com