Page 1 of 1
products and category lists
Posted: Thu Apr 29, 2010 2:04 pm
by manc
when i use the categorylist action, some categories work and other just direct to single products for no reason. why is this happening.
also, is there a setting, or URL in general, for seo friendly URLs for categories?
Re: products and category lists
Posted: Wed May 05, 2010 12:45 pm
by manc
can nobody help here? surely someone should know the solution to this
Re: products and category lists
Posted: Wed May 05, 2010 5:28 pm
by Dr.CSS
More info = More help...
Re: products and category lists
Posted: Thu May 06, 2010 9:47 am
by manc
ok.
i have used the following to call the categories:
Code: Select all
{Products action='categorylist' categorylisttemplate='sidebar' summarytemplate='summary'}
and the list outputs ok in theory, however, the links to those categories is the problem. here are examples:
link 1:
/index.php?mact=Products,cntnt01,default,1&cntnt01categorylisttemplate=sidebar&cntnt01summarytemplate=summary&cntnt01categoryid=3&cntnt01returnid=67&page=67
this link technically works and goes to a category. what i want to do here is change this URL to the following:
/category/category_name
or something similar
link 2:
/products/product_id/name-of-product
this goes directly to a product, which isn't even in that category. the category for link 2 has 2 products and the link it has directs to a product in another category. out of the XXX categories, this happens 7 times in no particular order.
The categorylist template code is:
Code: Select all
{foreach from=$categorylist item='obj'}<a href="{$obj->summary_url}">{$obj->name}</a> ({$obj->count})<br />
{/foreach}
Re: products and category lists
Posted: Thu May 06, 2010 8:11 pm
by Dr.CSS
Have you set pretty URLs in your config.php with hierarchy=true and do you use .htaccess?
Re: products and category lists
Posted: Mon May 10, 2010 9:29 pm
by manc
yes and yes. htaccess doesn't seem to interact with it
Code: Select all
RewriteEngine On
Options +FollowSymLinks
RewriteCond %{HTTP_HOST} ^domain\.com
RewriteRule ^(.*)$ http://www.domain.com/$1 [R=permanent,L]
#Rewrites page.shtml as index.php?page
RewriteCond %{REQUEST_FILENAME} !-f [NC]
RewriteCond %{REQUEST_FILENAME} !-d [NC]
RewriteRule ^(.+)$ index.php?page=$1 [QSA]