Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Hidden Categories ?

Quote Reply
Hidden Categories ?
I want to create a category and slowly add links to it but I dont want it to be viewable to the public until I'm finished.

How would I make a category hidden non-viewable ?
Quote Reply
Re: [incik] Hidden Categories ? In reply to
I'm sure it can be easily solved by adding a new column into category table, then adding a few mod code parts.

Its useful feature, so I'm sure I will implement later into one of my planned plugins.
Currently I'm working on Extended Links plugin, which is about extending features how to display links.
But later I may start to work on a plugin, which will extend category features. This could include the hidden category feature.

Best regards,
Webmaster33


Paid Support
from Webmaster33. Expert in Perl programming & Gossamer Threads applications. (click here for prices)
Webmaster33's products (upd.2004.09.26) | Private message | Contact me | Was my post helpful? Donate my help...
Quote Reply
Re: [incik] Hidden Categories ? In reply to
Hi

In subcategory in the first line add:

<%unless Short_Name eq 'category_name'%>

then in the end of the file add

<%endunless%>
Regards
KaTaBd

Users plug In - Multi Search And Remote Search plug in - WebRing plug in - Muslims Directory
Quote Reply
Re: [katabd] Hidden Categories ? In reply to
I'm not sure if I understand.

Do I goto the Category: Modify Record section then enter <%unless Short_Name eq 'category_name'%> into the Full Sub Category Separated with /'s column ???

and then in wich column would I enter <%endunless%> ???
Quote Reply
Re: [incik] Hidden Categories ? In reply to
You could just add a YES/NO column to your categories table called "Visible" default = YES.

Then set the columns you want invisible to NO, and in your sub category template just make it something like...

<if Visible = YES> Category Name etc <endif>

That way if Visible = NO it won't be displayed, ie. it'll be invisible.

r.

Last edited by:

ryel01: Apr 3, 2002, 1:27 AM
Quote Reply
Re: [ryel01] Hidden Categories ? In reply to
But that may screw up the table formatting if cells/tags are being missed out Wink

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [incik] Hidden Categories ? In reply to
No you enter it in your category.html templete.

That code will only work if you have one category to hide..

If you have more than one you do have to hack the code.
Regards
KaTaBd

Users plug In - Multi Search And Remote Search plug in - WebRing plug in - Muslims Directory
Quote Reply
Re: [katabd] Hidden Categories ? In reply to
So I would enter ?

<%unless Short_Name eq 'category_name'%> (at the beginning of the file)

<%endunless%> (at the end of the file)

into the category.html template ?
Quote Reply
Re: [incik] Hidden Categories ? In reply to
I don't think this will work for you.

Ryel01 described correctly in his last post, how this should be done. Check this post:
http://www.gossamer-threads.com/...i?post=189828#189828

Best regards,
Webmaster33


Paid Support
from Webmaster33. Expert in Perl programming & Gossamer Threads applications. (click here for prices)
Webmaster33's products (upd.2004.09.26) | Private message | Contact me | Was my post helpful? Donate my help...
Quote Reply
Re: [incik] Hidden Categories ? In reply to
Yes

and I have this up and running on my site..
Regards
KaTaBd

Users plug In - Multi Search And Remote Search plug in - WebRing plug in - Muslims Directory
Quote Reply
Re: [katabd] Hidden Categories ? In reply to
Thanks for the help it worked

you have to put the statements into

subcategory.html
Quote Reply
Re: [incik] Hidden Categories ? In reply to
Hi
I am so so sorry..
I was not thinking when I said category.html..


anyways.. glad it worked..
Regards
KaTaBd

Users plug In - Multi Search And Remote Search plug in - WebRing plug in - Muslims Directory