PDA

View Full Version : Using .php extension with search results


designcurb
15-May-2003, 03:27 PM
Hi

I have used .php on my catalog files so that I can parse some php for a stats page. Every thing works fine except when I click a result from the search page to go to that particular product. I get the following message:

"Highlight page name corrupt"

Is this because I have used the .php extension on the catalog pages and the search setup doesn't recognise this format of page extension.

Thank you for any advice in advance

www.therealdesigncompany.co.uk

cdicken
16-May-2003, 01:11 PM
The simple option is to just go to 'View | Search Settings | Results' and untick where it says 'Highlight Located Text'.

There is a perl fix here (http://www.actinic.com/knowledge/acatalog/v6_Script_Changes.html#aGC136) for *.shtml pages which you may be able to adapt for php.

Basically, change the line mentioned to read


if ($sPageName !~ /\.php?/i ||


I haven't tested this, but it should work.

designcurb
19-May-2003, 10:28 AM
Yes that worked a treat!

Cheers