Page 1 of 1

auto product tags

Posted: Mon Aug 17, 2009 12:24 pm
by troutlet
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?

Re: auto product tags

Posted: Wed Sep 02, 2009 12:01 pm
by sdlong02
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;

Re: auto product tags

Posted: Wed Sep 02, 2009 2:45 pm
by jmestep
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