an ASP.NET Open Source CMS & eCommerce platform
Search:
Last Post 2/12/2009 10:00:27 PM By lukezy. 3 replies.
2/11/2009 2:28:49 PM
Bahram
Posts: 878
Joined: 12/8/2008
Location:Vancouver, BC Canada
SEO tag
Luke,
 
 How Can I set another field to be meta tag, instead of description:, I need to set another userdefined field of the product table to be a tag :
 
<html xmlns="http://www.w3.org/1999/xhtml" >
<head><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /><meta id="ctl00_tagDescription" name="description" content="Two channel, 8 bit, 32 KB data logger (One ambient temperature and one external temperature channel)." />
 
 
Bahram
2/11/2009 3:37:26 PM
lukezy
Posts: 2109
Joined: 6/12/2007
Location:WA, US
Re: SEO tag
I am not sure if this is what you are looking for. You can use the "Extra Head Data" field.
 
DotShoppingCart Staff
2/11/2009 9:54:46 PM
Bahram
Posts: 878
Joined: 12/8/2008
Location:Vancouver, BC Canada
Re: SEO tag
Description is a field name in product table. and appears as the meta tag on the product.aspx page by DSC.
I want another field to be used for this purpose.
 
2/12/2009 10:00:27 PM
lukezy
Posts: 2109
Joined: 6/12/2007
Location:WA, US
Re: SEO tag
In Store\Product.ascx.cs, replace the yellow background line to the field that you want.
 
    private void LoadMetaTags() {
        Page.Title = string.Format("{0} - {1} ", SiteConfigurationSection.GetSection().Name,
            string.IsNullOrEmpty(product.Title) ? product.ProductName : product.Title);
        DSCMasterPage master = (DSCMasterPage)Page.Master;
        master.Description = product.ShortDescription;
 
 
 
 
DotShoppingCart Staff