Gossamer Forum
Home : Products : Gossamer Links : Development, Plugins and Globals :

links_loop when no links - problem

Quote Reply
links_loop when no links - problem
I am using the loop links_loop feature on the category pages. It works great as long are there links in the category, however, when a category has 0 links, the last line of HTML code for that page is <!-- Links in this category. --> The rest of the page is cut off.

<%if links%> is what should come next, yet none of this code or the rest of the page is built.

Any ideas?

I've been bypassing the problem by adding a link to the root category as filler, but I don't like this. In some categories I want to show just the subcategories.
Quote Reply
Re: [AtoZ] links_loop when no links - problem In reply to
Check your templates carefully for syntax errors.

I have many sites, many of which don't have links in all categories, and all run dynamically. The pages display just fine.

It sounds like there is a problem with your template, or an include file.


PUGDOG´┐Ż Enterprises, Inc.

The best way to contact me is to NOT use Email.
Please leave a PM here.
Quote Reply
Re: [AtoZ] links_loop when no links - problem In reply to
I'm sure pugdog is right that your syntax is off. I had this same problem the other day, and then checking I find that I forgot the <%endif%> to close off the <%if links%>. Make sure that all of your ifs are closed with endifs in the right places, and I'll bet that will fix the problem.

--Frank