Page 1 of 1
[0.7.9RC7] Sitemap
Posted: Fri Jan 23, 2009 4:26 pm
by fido-x
Got this error on the sitemap --
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in catalog/template/default/content/sitemap.tpl on line 18
Suggest changing line 18 from --
Code: Select all
$style='list-style-type: '.$bullet.'; margin-left: '.$margin'.'px;';
to
Code: Select all
$style='list-style-type: '.$bullet.'; margin-left: '.$margin.'px;';
Fido-X.
Re: [0.7.9RC7] Sitemap
Posted: Fri Jan 23, 2009 7:33 pm
by hm2k
Fixed in r372.
Re: [0.7.9RC7] Sitemap
Posted: Sat Jan 24, 2009 1:42 pm
by fido-x
While the fix in r372 resolves the T_CONSTANT_ENCAPSED_STRING error, there is another "bug" that has been introduced as a result of the changes in the sitemap.tpl file -- subcategories are not being indented. Suggest changing it back to how it was in RC6 and earlier.
Fido-X.
Re: [0.7.9RC7] Sitemap
Posted: Sat Jan 24, 2009 7:21 pm
by hm2k
Yes they are being indented.
Re: [0.7.9RC7] Sitemap
Posted: Sun Jan 25, 2009 11:54 am
by fido-x
Sorry, my mistake.
However, subcategories are no longer appearing under the correct parent category due to a change you made to "catalog/controller/sitemap.php". Suggest changing the category query (line 33) from --
Code: Select all
$results = $database->getRows("select c.category_id, cd.name, c.parent_id, c.path, c.sort_order from category c left join category_description cd on (c.category_id = cd.category_id) where cd.language_id = '".(int)$language->getId()."' order by c.sort_order, cd.name");
to --
Code: Select all
$results = $database->getRows("select c.category_id, cd.name, c.parent_id, c.path from category c left join category_description cd on (c.category_id = cd.category_id) where cd.language_id = '" . (int)$language->getId() . "' order by c.path, c.sort_order, cd.name");
Fido-X.
Re: [0.7.9RC7] Sitemap
Posted: Tue Jan 27, 2009 11:15 pm
by hm2k