
More than one word category
The following code as it appears in the store_header.inc file for left-hand column navigation will take your two word category name, as set up in the manager using the underscore to separate the two words, and remove the underscore and replace it with a space.
foreach $category (sort(keys %category_list)) {
$category2 = $category;
$category2=~s/_/ /g;
print " <a href=\"agora.cgi?cart_id=%%cart_id%%&product=",
"$category\"> $category2 </a><br>\n";
}
This appears to be the case if I look at the source code of the "completed/compiled" index page. I say appears since the link is underlined when seeing the page.
I tried to remove the underline but to no avail by using the following code.
foreach $category (sort(keys %category_list)) {
$category2 = $category;
$category2=~s/_/ /g;
#to remove underline in link
$category2=~s/style=\"text-decoration: none\"//g;
print " <a href=\"agora.cgi?cart_id=%%cart_id%%&product=",
"$category\"> $category2 </a><br>\n";
}
I have not been able to get the underlining to disappear. Is there something I'm missing here?
Also where is file located that contains the page titlefor the auto-generated category pages so I can remove the underscore from that as well.
tia,
Elaine Kula
_________________
P.S. Did you wear jewelry today?
Was it gorgeous?
It could have been ...
http://www.antiquingonline.com/