Gossamer Forum
Home : Products : Gossamer Links : Discussions :

multiple categories

Quote Reply
multiple categories
Links had a hack where you can make our own templates and import them the the code was something like this:


sub site_html_category {
# --------------------------------------------------------
# This rountine will build a page based for the current category.
my $template;
# Set the appropriate template file to load
if ($category_name =~ /^Entertainment/) {
$template = "Entertainment.html"; }
elsif ($category_name =~ /^Gameroom/) {
$template = "Gameroom.html"; }
elsif ($category_name =~ /^Health_and_Fitness/) {
$template = "Health.html"; }
elsif ($category_name =~ /^Business_and_Economy/) {
$template = "Business.html"; }
elsif ($category_name =~ /^Home_and_Garden/) {
$template = "Garden.html"; }
elsif ($category_name =~ /^Automotive/) {
$template = "Automotive.html"; }
elsif ($category_name =~ /^Art_and_Humanities/) {
$template = "Art.html"; }
elsif ($category_name =~ /^Education/) {
$template = "Education.html"; }
elsif ($category_name =~ /^Computer_and_Internet/) {
$template = "Computer.html"; }
elsif ($category_name =~ /^Food_And_Drink/) {
$template = "Food.html"; }
elsif ($category_name =~ /^Government/) {
$template = "Government.html"; }
elsif ($category_name =~ /^Kids_and_Family/) {
$template = "Kids.html"; }
elsif ($category_name =~ /^Reference/) {
$template = "Reference.html"; }
elsif ($category_name =~ /^Society_and_Culture/) {
$template = "Culture.html"; }
elsif ($category_name =~ /^Science/) {
$template = "Science.html"; }
else { $template = "category.html"; }


do they have a hack for links sql? and how can I import my links ones into links sql?


Tazmear

www.sagnetwork.com - Internet Portal
Subject Author Views Date
Thread multiple categories sagnetwork.com 2056 May 1, 2004, 11:24 AM
Thread Re: [tazmear] multiple categories
afinlr 2016 May 1, 2004, 3:43 PM
Post Re: [afinlr] multiple categories
sagnetwork.com 2010 May 1, 2004, 4:18 PM
Thread Re: [afinlr] multiple categories
sagnetwork.com 2000 May 1, 2004, 7:22 PM
Thread Re: [tazmear] multiple categories
afinlr 1988 May 2, 2004, 5:52 AM
Thread Re: [afinlr] multiple categories
sagnetwork.com 1998 May 2, 2004, 6:27 AM
Post Re: [tazmear] multiple categories
afinlr 1986 May 2, 2004, 6:31 AM