You are here:  » Review Pages


Review Pages

Submitted by stuartqwh on Sat, 2023-03-11 10:55 in

Hi David,
Would this be possible?
I am writing product reviews using the example.php file at the moment.
I would like to have all the review pages in their own folder with a link in the top bar similar to the Category A-Z Brand A-Z Merchant A-Z
As you can appreciate the review pages files in the home directory are getting unwieldy. (A mess to put it in mild technical terms).
Any help would be greatly appreciated.
Regards,
Stuart.

Submitted by support on Mon, 2023-03-13 09:58

Hi Stuart,

To use example.php within a sub-directory all you need to do is look for the following code at line 2:

  require("includes/common.php");

...and REPLACE with:

  chdir("..");
  require("includes/common.php");

So if you create a directory "reviews", and also use a copy of example.php modified as per the above saved as index.php in the new folder you can then create your A-Z of reviews on that page and link to /reviews/ from a new menu entry or as required (added to html/menu.php)...

Hope this helps!

Cheers,
David.
--
PriceTapestry.com

Submitted by stuartqwh on Mon, 2023-03-13 10:02

Excellent.. as always
Thank you for your time.