auto product tags

Store UI, layout, design, look and feel; Discussion on the customer facing pages of your online store. Cascading Style Sheets, Themes, Scriptlets, NVelocity and the components in the ConLib directory.
Post Reply
User avatar
troutlet
Lieutenant (LT)
Lieutenant (LT)
Posts: 77
Joined: Mon Sep 24, 2007 3:01 am
Location: USA
Contact:

auto product tags

Post by troutlet » Mon Aug 17, 2009 12:24 pm

There are a lot of threads here about meta tags but I've not found anything like what I'm trying to do. On product pages I want to have a meta description that uses the Products Name followed by the Summary Information. <meta name="Description" content="THE PRODUCTS NAME + THE PRODUCTS SUMMARY" />.

I'm sure that a few of you have made this happen already. Would anyone care to share?

sdlong02
Lieutenant Commander (LCDR)
Lieutenant Commander (LCDR)
Posts: 95
Joined: Mon Jan 19, 2009 2:33 pm

Re: auto product tags

Post by sdlong02 » Wed Sep 02, 2009 12:01 pm

No genius on the matter, but code should look something like this

Code: Select all

            PageHelper.BindMetaTags(this, _Product);
            Page.Title = _Product.Name +  _Product.Summary;

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

Re: auto product tags

Post by jmestep » Wed Sep 02, 2009 2:45 pm

It's more difficult with the description meta than it is with the title, like the code given above. You would have to add code to the PageHelper.BindMetaTags class to do something like that.
Time for a short commercial:
I've got the SEO Manager that Web2Market is going to sell almost done. I'm in the process of documenting the features right now, but here's a quick screen shot of it on an edit product page. Then if nothing is entered, there are routines that add default things, like description and breadcrumbs.
Here's a screen shot.
SEO.jpg
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