Gossamer Forum
Home : Products : Gossamer Links : Discussions :

No Links Without Cat

Quote Reply
No Links Without Cat
Hi,

Could there be a way to display the number of links in a category on the home page *without* the category link being built.

Because of a complex home page layout, I cannot have links2 build the main categories on this page but still would like the no of links for all categories built, perhaps like:

<%Cat::Playstation::Number_of_Links%>
<%Cat::Mac::Number_of_Links%>

etc...


Perhaps a global?

Hope this make sense ;-)

- Eraser.


Quote Reply
Re: No Links Without Cat In reply to
Seems to me you'd just want to change the subcategory.html file.

Maybe hack it into the build_home routine, I'm not exactly sure, I'd have to look, but that would change the look of the front page categories while not changing the look of the rest of the category pages.



PUGDOGŪ Enterprises, Inc.
FAQ:http://LinkSQL.com/FAQ
Forum:http://LinkSQL.com/forum
Quote Reply
Re: No Links Without Cat In reply to
Yes, if you don't want it linked up, you could edit subcategory.html and put:

<%if FatherID == 0%>
# non linked version.
<%else%>
# linked up version
<%endif%>

as FatherID = 0 means it's a root level category.

Cheers,

Alex

--
Gossamer Threads Inc.
Quote Reply
Re: No Links Without Cat In reply to
I must be doing something wrong here?

I have:

<%if FatherID == 0%>
<%Number_of_Links%>Listed cheats<%endif%>

But this output is the same as just using:
<%Number_of_Links%>

What I need is the number of links for each individual category so I can place the output under the hardcode category links.

- Eraser.