You are here:  » Dashes Coming-Up In Product Pages


Dashes Coming-Up In Product Pages

Submitted by getgood on Tue, 2006-03-21 19:42 in

I just changed the script recently so the pages would be html but the title is coming up with:
- in-between-the-name-of-the-product?

Any ideas on how to change this?

Thanks
Adam

Submitted by support on Tue, 2006-03-21 19:44

Hi Adam,

Do you mean you've changed from .php to .html?

Submitted by getgood on Wed, 2006-03-22 13:14

I used the feature to rename the end product pages to html, example here -
http://thebiggolfstore.com/search/product/Adidas-A3-Series-Golf-Shoe.html

Submitted by support on Wed, 2006-03-22 13:20

This looks like the following line, which sets the title:

  $header_title = $q;

..occurs before the line which stips out the slashes:

  $q = tapestry_normalise($q,":\.");

So I think you need to move the line where you set the title further down the page so that the dashes have been removed before you use it...

Hope this makes sense - post the first few lines of your modified products.php page if not...

Cheers,
David.