Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Re: [Demolitioncrew] Displayin "Add a Link" based on category depth?

Quote Reply
Re: [Demolitioncrew] Displayin "Add a Link" based on category depth? In reply to
Hi,

This is a manual solution, but I've done this by adding a new ENUM field to the Category table called isSub [Yes/No] (default 'Yes').

Then in the category template I just put a condition around the 'Add a Site' link:

Code:
<%if isSub eq 'Yes'%>
Display add a site link
<%endif%>

This allows me to turn site suggestions on/off on an individual category basis, in my case I've turned it off for the top-level categories and for selected lower level ones where I want people to go deeper before submitting.

If you've already got a large category structure in place you could push 'Yes' into all the categories and then turn off selected ones at will, however this is a manual solution and I suppose an automated one would improve it from a maintenance p.o.v.

Anyway, hope this helps Smile

All the best
Shaun
Subject Author Views Date
Thread Displayin "Add a Link" based on category depth? Demolitioncrew 3375 Sep 2, 2002, 9:38 PM
Post Re: [Demolitioncrew] Displayin "Add a Link" based on category depth?
Andy 3312 Sep 3, 2002, 3:43 AM
Thread Re: [Demolitioncrew] Displayin "Add a Link" based on category depth?
qango 3303 Sep 3, 2002, 5:13 AM
Post Re: [qango] Displayin "Add a Link" based on category depth?
Demolitioncrew 3266 Sep 3, 2002, 8:38 AM
Thread Re: [qango] Displayin "Add a Link" based on category depth?
Andreaf 3116 Mar 10, 2004, 9:37 AM
Thread Re: [Andreaf] Displayin "Add a Link" based on category depth?
tariqali 2962 Feb 16, 2006, 6:23 PM
Post Re: [tariqali] Displayin "Add a Link" based on category depth?
afinlr 2932 Feb 17, 2006, 4:12 AM