Hi David,
on my site {link saved} there happens the following:
when I click on a featured product, the header.jpg ist disappearing. On other installations of PT this does not happen. The reason is that if you mouse over the featured products the url is
/products........
But on the site {link saved} mouse over featured products shows
/product.....
Where can I find the fault?
Regards
Roland
Hi David,
I did what you proposed, but nothing changed. It still appears /product/
instead of
/products/
Regards
Roland
Ah sorry Roland I mis-understood the question however that did need correcting anyway. To change /product/ to /products/, first update the rule in .htaccess by looking for the following code at line 7:
RewriteRule ^product/(.*).html$ products.php?q=$1&rewrite=1&%{QUERY_STRING} [L]
...and REPLACE with:
RewriteRule ^products/(.*).html$ products.php?q=$1&rewrite=1&%{QUERY_STRING} [L]
Then, to make the corresponding change in the product page URLs generated by the script, look for the following code at line 53 of includes/tapestry.php:
return $config_baseHREF."product/".urlencode(tapestry_hyphenate($product["normalised_name"])).".html";
...and REPLACE with:
return $config_baseHREF."products/".urlencode(tapestry_hyphenate($product["normalised_name"])).".html";
Cheers,
David.
--
PriceTapestry.com
Hi Roland,
It's because the URL to your background image (html/images/b_header.jpg) is relative, so when in the virtual /product/ folder it can't be found.
To correct it, simply put the leading / in the image URL and that will make it an absolute path e.g.
background-image:url(/html/images/b_header.jpg);
Cheers,
David.
--
PriceTapestry.com