Gossamer Forum
Home : Products : Gossamer Links : Version 1.x :

Is there a way to block additions to certain categories?

Quote Reply
Is there a way to block additions to certain categories?
Links 2.0 had a great Category Select List Mod by Connors ( goodstuff.orphanage.com/rcat_mod.html ). I would like to do the same thing in my LinksSQL simply because I have so many sub-categories.

Douglas


[This message has been edited by Douglas (edited January 25, 2000).]
Quote Reply
Re: Is there a way to block additions to certain categories? In reply to
Hi Douglas,

I solved this problem with the tags in the templates.

<%if category%>
<a href="../pages/add.htm">add link</a>
<%endif%>
<%ifnot category%>
<a href="<%db_cgi_url%>/add.cgi?ID=<%category_id%>">Place
Ad</a>
<%endif%>

This html code will only let the user add a link if there is no subcategory. If there are any subcats he will be sent to add.htm where he is told to go to the downmost cat.

regards, Alexander
Quote Reply
Re: Is there a way to block additions to certain categories? In reply to
Alex404,

Interesting approach. I'll mess around with it and see what comes of it.

Thanks