Meta tag display

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
User avatar
jmestep
AbleCommerce Angel
Posts: 8164
Joined: Sun Feb 29, 2004 8:04 pm
Location: Dayton, OH
Contact:

Meta tag display

Post by jmestep » Thu Apr 24, 2008 1:40 pm

I've entered in some keywords, titles, etc into the html head field in some categories and they are not being rendered in the page. Is there something else I need to do?
Thanks
Judy Estep
Web Developer
jestep@web2market.com
http://www.web2market.com
708-653-3100 x209
New search report plugin for business intelligence:
http://www.web2market.com/Search-Report ... -P154.aspx

User avatar
jmestep
AbleCommerce Angel
Posts: 8164
Joined: Sun Feb 29, 2004 8:04 pm
Location: Dayton, OH
Contact:

Re: Meta tag display

Post by jmestep » Thu Apr 24, 2008 3:09 pm

The only code I can find, other than the input code in the admin pages is in the App_Code/ Pagehelper.cs:
public static void BindMetaTags(Page page, ICatalogable catalogObject)
{
if (catalogObject != null)
{
page.Header.Controls.Add(new LiteralControl(catalogObject.HtmlHead));
}
}
In VS2005, the metadata for that code says:
Summary:
// Gets the document header for the page if the head element is defined with
// a runat=server in the page declaration.
//
// Returns:
// An System.Web.UI.HtmlControls.HtmlHead containing the page header.

Does anyone know where that would be so I can check it? I've looked at some of the pages and in the App_Data scriplets.
Judy Estep
Web Developer
jestep@web2market.com
http://www.web2market.com
708-653-3100 x209
New search report plugin for business intelligence:
http://www.web2market.com/Search-Report ... -P154.aspx

User avatar
AbleMods
Master Yoda
Master Yoda
Posts: 5170
Joined: Wed Sep 26, 2007 5:47 am
Location: Fort Myers, Florida USA

Re: Meta tag display

Post by AbleMods » Thu Apr 24, 2008 4:51 pm

You should only have to populate the HTML Head section like this:

Code: Select all

<meta name="keywords" content="Stansport,48263-01,276-9,Appliances"/>
<meta name="description" content="Stainless Steel 9 Cup Coffee Pot"/>
Make sure you do a search and don't just look for it in the HTML source of the rendered page. Sometimes the tags get pushed far to the right and they're not obvious to see.
Joe Payne
AbleCommerce Custom Programming and Modules http://www.AbleMods.com/
AbleCommerce Hosting http://www.AbleModsHosting.com/
Precise Fishing and Hunting Time Tables http://www.Solunar.com

User avatar
bobr2k
Commander (CMDR)
Commander (CMDR)
Posts: 183
Joined: Fri Oct 26, 2007 2:31 pm
Location: Illinois

Re: Meta tag display

Post by bobr2k » Thu Apr 24, 2008 8:39 pm

It was my understanding you could gain as much populating the html head of the categories with something like: meta name="keywords" content="nuts, bolts, hammers,saws"
one forum entry suggested they aren't used anymore ... not sure who to believe anymore. :shock:
Bob R.
"Bills travel through the mail at twice the speed of checks." -- Steven Wright

User avatar
jmestep
AbleCommerce Angel
Posts: 8164
Joined: Sun Feb 29, 2004 8:04 pm
Location: Dayton, OH
Contact:

Re: Meta tag display

Post by jmestep » Thu Apr 24, 2008 8:42 pm

I've checked some other page and it's OK. The one it isn't showing up on is an adaptation of a category page, so I must have broken it.
Judy Estep
Web Developer
jestep@web2market.com
http://www.web2market.com
708-653-3100 x209
New search report plugin for business intelligence:
http://www.web2market.com/Search-Report ... -P154.aspx

User avatar
AbleMods
Master Yoda
Master Yoda
Posts: 5170
Joined: Wed Sep 26, 2007 5:47 am
Location: Fort Myers, Florida USA

Re: Meta tag display

Post by AbleMods » Thu Apr 24, 2008 10:55 pm

Way to go Judy :wink:
Joe Payne
AbleCommerce Custom Programming and Modules http://www.AbleMods.com/
AbleCommerce Hosting http://www.AbleModsHosting.com/
Precise Fishing and Hunting Time Tables http://www.Solunar.com

User avatar
jmestep
AbleCommerce Angel
Posts: 8164
Joined: Sun Feb 29, 2004 8:04 pm
Location: Dayton, OH
Contact:

Re: Meta tag display

Post by jmestep » Fri Apr 25, 2008 3:41 pm

OK, more info. I didn't break it. The contents of the <head> field put into the admin field don't show up for any of my webpages, just for categories and products. Can anyone else verify?
Judy Estep
Web Developer
jestep@web2market.com
http://www.web2market.com
708-653-3100 x209
New search report plugin for business intelligence:
http://www.web2market.com/Search-Report ... -P154.aspx

User avatar
AbleMods
Master Yoda
Master Yoda
Posts: 5170
Joined: Wed Sep 26, 2007 5:47 am
Location: Fort Myers, Florida USA

Re: Meta tag display

Post by AbleMods » Fri Apr 25, 2008 7:34 pm

jmestep wrote:...of the <head> field put into the admin field
Where is what you are talking about Judy?
Joe Payne
AbleCommerce Custom Programming and Modules http://www.AbleMods.com/
AbleCommerce Hosting http://www.AbleModsHosting.com/
Precise Fishing and Hunting Time Tables http://www.Solunar.com

User avatar
jmestep
AbleCommerce Angel
Posts: 8164
Joined: Sun Feb 29, 2004 8:04 pm
Location: Dayton, OH
Contact:

Re: Meta tag display

Post by jmestep » Sat Apr 26, 2008 8:23 am

I meant HTML Head field when editing a webpage. I just tried it and now something is showing up. Maybe it was a cache issue.
Sorry for the trouble and thanks for the posts.
Judy Estep
Web Developer
jestep@web2market.com
http://www.web2market.com
708-653-3100 x209
New search report plugin for business intelligence:
http://www.web2market.com/Search-Report ... -P154.aspx

User avatar
jmestep
AbleCommerce Angel
Posts: 8164
Joined: Sun Feb 29, 2004 8:04 pm
Location: Dayton, OH
Contact:

Re: Meta tag display

Post by jmestep » Sat Apr 26, 2008 8:33 am

I think I've got it figured out. The merchant wanted me to put a special <title> tag in above the keywords and description and when I took that out, the rest showed up.
Judy Estep
Web Developer
jestep@web2market.com
http://www.web2market.com
708-653-3100 x209
New search report plugin for business intelligence:
http://www.web2market.com/Search-Report ... -P154.aspx

Post Reply