Gossamer Forum
Home : Products : Gossamer Links : Discussions :

different types of categories

Quote Reply
different types of categories
if you have a quick look athttp://bn23.com/...al/Europe/index.html[/url]

there are two types of categories.

1) countries to get more specific e.g. united kingdom

2) content categories e.g. government

is there anyway to seperate these two out. so they are listed in blocks together, not by alphabetical order?



thanks for help.

ashley rollinson

bn23
http://BN23.com
Quote Reply
Re: [bn23] different types of categories In reply to
1) The easiest solution would be to create 2 category: e.g. Countries and Contents, then move same types to matching category.

2) Other solution could be to add a new column to Category table, named CatType, and assign same number for those which are same type. Then change the category sorting order by adding the CatType first.

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: [bn23] different types of categories In reply to
Hi,

You could try:

Countries:
<%loop category_loop%>
<%if CatType eq 'Country'%>
.. display the category
<%endif%>
<%endloop%>

Categories:
<%loop category_loop%>
<%if CatType eq 'Category%>
.. display the category
<%endif%>
<%endloop%>

to this will cause Links SQL to go through the list of categories twice. The first time it will print Country categories, the second time it will print the other categories. Of course you need to be able to tell what is a country and what is a normal one. One way I've suggested above is to add a new field CatType and set it to country/category.

Cheers,

Alex
--
Gossamer Threads Inc.