Amending default product page title.

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
User avatar
sciencesight
Lieutenant, Jr. Grade (LT JG)
Lieutenant, Jr. Grade (LT JG)
Posts: 33
Joined: Sat Aug 28, 2004 1:42 pm
Location: Denver, CO
Contact:

Amending default product page title.

Post by sciencesight » Wed Jun 10, 2009 4:10 pm

I'd like to alter the default product page title for SEO reasons. I could do this easily in 5.5. How may I do it in v7.0?

Thanks, Dave

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: Amending default product page title.

Post by mazhar » Thu Jun 11, 2009 5:03 am

Edit your Website/Default.aspx file and then locate Title attrib in it

Code: Select all

Title="Home Page"
and change it to your custom for example

Code: Select all

Title="Home Page(Modified)"

User avatar
sciencesight
Lieutenant, Jr. Grade (LT JG)
Lieutenant, Jr. Grade (LT JG)
Posts: 33
Joined: Sat Aug 28, 2004 1:42 pm
Location: Denver, CO
Contact:

Re: Amending default product page title.

Post by sciencesight » Thu Jun 11, 2009 10:39 am

Thanks mazhar,
That helped me custom title the Home Page.
Taking your lead, on the products.aspx page, I assume I can safely add plain text to follow this string...

Code: Select all

Page.Title = _Product.Name;
How would that go?

Thanks, Dave

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: Amending default product page title.

Post by mazhar » Thu Jun 11, 2009 10:44 am

This statement it put dynamic title that can change depending upon product name. So if you want to change it as

Code: Select all

Page.Title = "Your text here";

User avatar
sciencesight
Lieutenant, Jr. Grade (LT JG)
Lieutenant, Jr. Grade (LT JG)
Posts: 33
Joined: Sat Aug 28, 2004 1:42 pm
Location: Denver, CO
Contact:

Re: Amending default product page title.

Post by sciencesight » Thu Jun 11, 2009 11:41 am

Thanks,

This is what I want to do...

Code: Select all

Page.Title = “title text before product name”  _Product.Name;  “title text following product name.”
Will this work this way?

Thanks, Dave

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: Amending default product page title.

Post by mazhar » Fri Jun 12, 2009 4:42 am

It would be something like this

Code: Select all

Page.Title = “title text before product name” + _Product.Name + “title text following product name.”;

User avatar
efficiondave
Commander (CMDR)
Commander (CMDR)
Posts: 151
Joined: Tue Dec 02, 2008 10:20 am
Location: St. Louis Missouri
Contact:

Re: Amending default product page title.

Post by efficiondave » Thu May 27, 2010 2:07 pm

This still limits you to static text and product name. We really need the ability to customize this for each product and category. I see there is a wiki article on this but I'm not sure it would work quite right, it seems to be missing some stuff. http://wiki.ablecommerce.com/index.php/ ... ta_tags%3F

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

Re: Amending default product page title.

Post by jmestep » Fri May 28, 2010 6:37 am

Web2Market's SEO Manager handles specific per product titles. It also moves the title and meta stuff up to the top of the page. It creates default titles and meta if there is no custom one added. It is our best selling plugin, as it was with the Able 5 SEO plugin.
You can see it at work by viewing the source of a site like this that uses it.
http://www.thegpsstore.com/Automotive-GPS-C1.aspx

Purchase information is here:
http://www.web2market.com/SEO-Manager-P122C77.aspx
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
draneb
Captain (CAPT)
Captain (CAPT)
Posts: 314
Joined: Sun Jun 12, 2005 4:07 pm
Location: Texas
Contact:

Re: Amending default product page title.

Post by draneb » Wed Oct 27, 2010 12:34 pm

I sure would like to add the main category name to the product page title. Is this possible?

I tried
Page.Title = _Product.Name + c.Name;
and it gave an error The name c.Name Does Not Exist in the Current Context

Thank you!
AC 7.0.3 build 13937

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: Amending default product page title.

Post by mazhar » Thu Oct 28, 2010 4:52 am

Try something like this

Code: Select all

int categoryId = PageHelper.GetCategoryId();
Category c = CategoryDataSource.Load(categoryId);
Page.Title = _Product.Name + c.Name;

User avatar
draneb
Captain (CAPT)
Captain (CAPT)
Posts: 314
Joined: Sun Jun 12, 2005 4:07 pm
Location: Texas
Contact:

Re: Amending default product page title.

Post by draneb » Thu Oct 28, 2010 8:58 am

That worked perfectly. Thank you so much Mazhar!
AC 7.0.3 build 13937

Post Reply