Gossamer Forum
Home : Products : Gossamer Links : Discussions :

if links statement help

Quote Reply
if links statement help
I was looking at some of my categories and they dont have any links in them.

So I wanted to be able to put a stement there but not sure how to do it.

Heres an example of what I want.

<%if links%><%links%><%endif%>

<%if nolinks%> Sorry theres no links in this category <%endif%>

So when I build and there are no links in a category it would give that statement and if there are links it will build the links.

How can I get it to do this ?
Quote Reply
Re: [incik] if links statement help In reply to
<%ifnot ... %>
Quote Reply
Re: [incik] if links statement help In reply to
Or just use:

Code:
<%if links%><%links%>

<%else%>
Sorry theres no links in this category
<%endif%>

Sean