Hi,
I have been organising my feeds into category folders as some others had spoken of on this forum, so that I could have sub categories on my site.
I have hit a snag that if I tell you what I did you may know what I have messed up.
Basically, In my new category folders, I installed price tapestry for each category. Then because I wanted the index page of each category folder to show a list of sub categories within, I changed the categories.php name to index.php,
Here it is
http://www.findallsorts.com/shopUK/c/electrical-goods/
So it shows all the sub categories of electrical goods.
However clicking on the categories in there I get an error page.
I have imported one feed there with categories which I wanted listed there.
Any idea why my category links arent working?
Thankyou, the links all work now.
One thing though, it seems to conflict with the something in the header that comes after. I get this error on the same page that I have tried it on.
$config_baseHREF."category/".tapestry_hyphenate($product["category"])."/";
Warning: Cannot modify header information - headers already sent by (output started at /home/******/electrical-goods/index.php:1) in /home/*******/electrical-goods/html/header.php on line 6
I think it is where the header is referring to location of the .css style sheet, using the baseHREF.
<link media='all' href='<?php print $config_baseHREF; ?>default.css'
Will it be necessary for me to change the links to the style sheet to an absolute url, instead of using the config_baseHREF, so as to avoid this, if that is what it is, or is therea way to still use the config there, to save making individual changes in each sub category header file.
Hi Clare,
It looks like something is not quite right with the edit. I'm not quite sure how the PHP is being displayed directly; but it looks as if it may have been accidentally pasted into the very top of your index.php - as well as being in the place required in the code.
Can you check for this? Open index.php into a text editor and make sure that it starts with the opening PHP tag...
If it's still not working; feel free to email me your modified index.php and i'll take a look. Reply to your reg code or forum registration email is the easiest way...
Cheers,
David.
Sorry, yes, I used a find replace tool and it didnt do what I expected and I just presumed it had.
Thankyou, It works perfect.
Clare
Hi Clare,
When running with search engine friendly URLs, the category script (which you have renamed to index.php) expects to be running in the /category/ subdirectory. To fix this, you will need to modify categories.php (or rather index.php on your modified system) as follows.
Look for the code that generates the link when using rewrite:
if ($config_useRewrite)
{
$item["href"] = tapestry_hyphenate($product["category"])."/";
}
...and change this as follows:
if ($config_useRewrite)
{
$item["href"] = $config_baseHREF."category/".tapestry_hyphenate($product["category"])."/";
}
That should do the trick...
Cheers,
David.