Hi
I'd like to know, in webadverts when setting up zones for categories and sub-categories, how can i use zoneA for category XXX and it's subcategories.
Do i have to use this code?
~;
if ($category_name eq "XXX") {
$output .= qq~< !--#exec cgi="/cgi-bin/zoneA.cgi"-- >~;
}
elsif ($category_name eq "XXX/adult") {
$output .= qq~< !--#exec cgi="/cgi-bin/zoneA.cgi"-- >~;
}
elsif ($category_name eq "XXX/video") {
$output .= qq~< !--#exec cgi="/cgi-bin/zoneA.cgi"-- >~;
}
elsif ($category_name eq "XXX/pictures") {
$output .= qq~< !--#exec cgi="/cgi-bin/zone_D.cgi"-- >~;
}
else {
$output .= qq~< !--#exec cgi="/cgi-bin/zoneB.cgi"-- >~; ### default backup
}
$output .= qq~
Or is there an easyer way to tell the script to use zoneA on category XXX and it's subcategories?
Thank you
I'd like to know, in webadverts when setting up zones for categories and sub-categories, how can i use zoneA for category XXX and it's subcategories.
Do i have to use this code?
~;
if ($category_name eq "XXX") {
$output .= qq~< !--#exec cgi="/cgi-bin/zoneA.cgi"-- >~;
}
elsif ($category_name eq "XXX/adult") {
$output .= qq~< !--#exec cgi="/cgi-bin/zoneA.cgi"-- >~;
}
elsif ($category_name eq "XXX/video") {
$output .= qq~< !--#exec cgi="/cgi-bin/zoneA.cgi"-- >~;
}
elsif ($category_name eq "XXX/pictures") {
$output .= qq~< !--#exec cgi="/cgi-bin/zone_D.cgi"-- >~;
}
else {
$output .= qq~< !--#exec cgi="/cgi-bin/zoneB.cgi"-- >~; ### default backup
}
$output .= qq~
Or is there an easyer way to tell the script to use zoneA on category XXX and it's subcategories?
Thank you

