apswater
VP-CART Super User
444 Posts |
Posted - January 18 2005 : 16:19:16
|
ok, First let me say I have only programed in asp for a week or so, but below is a little code I wrote that is very important if you want to get into the search engines. This code takes the category name and description and turns them into meta tags for your page where the title will become the catalog name and the meta description is the category descriptions... I also modified the shopdisplay products to do the same as well as changed tmp_product.htm to do the same using the [cdescription] tags and such.
the working version is at http://66.121.213.146/products/
(I use 4.5 not sure about 5 and 5.5 Here is what I did on shopdisplaycategories.asp
on your shoppage_header delete the whole the <head> to </head> section at the top. This mod will replace that section and add a different title for each category and will add descriptions to the metatags. Try it and see...
Find
Sub ShopCategories highercategoryid=request("id") If not isnumeric(highercategoryid) then highercategoryid=""
Replace entire from there to the end of the sub with
Sub ShopCategories highercategoryid=request("id")
If not isnumeric(highercategoryid) then highercategoryid=""
dim rs dim title dim description if highercategoryid="" then highercategoryid=0 end if if highercategoryid <> "0" then SQL="Select * from categories " sql = Sql & " where categoryid=" & highercategoryid OpenRecordSet dbc, rs, sql title = rs("catdescription") description = rs("catmemo") if Title = "" then Title = "Water Purification Products - Softeners - Carbon - Reverse Osmosis" end if %> <head> <title><% response.write title %> </title> <!<link rel="stylesheet" href="shop.css" type="text/css"> <meta NAME="description" content=" <% Response.write description %> <meta NAME="keywords" content=" <% Response.write title %>" </head> <%
CloseRecordSet rs end if
if highercategoryid="" then highercategoryid=0 end if ShopPageHeader ' Page header for shop CategoryHeader ' category header on this page Showcategories ' format categories on this page ShopPageTrailer ' shop page trailer end sub
Edited by - apswater on January 28 2005 12:08:24
Edited by - apswater on February 11 2005 20:05:48
Edited by - apswater on February 12 2005 01:55:59 |
|