products and category lists

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
User avatar
manc
Forum Members
Forum Members
Posts: 107
Joined: Wed Apr 01, 2009 12:59 pm

products and category lists

Post 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?
User avatar
manc
Forum Members
Forum Members
Posts: 107
Joined: Wed Apr 01, 2009 12:59 pm

Re: products and category lists

Post by manc »

can nobody help here? surely someone should know the solution to this
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am
Location: Arizona

Re: products and category lists

Post by Dr.CSS »

More info = More help...
User avatar
manc
Forum Members
Forum Members
Posts: 107
Joined: Wed Apr 01, 2009 12:59 pm

Re: products and category lists

Post 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}
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am
Location: Arizona

Re: products and category lists

Post by Dr.CSS »

Have you set pretty URLs in your config.php with hierarchy=true and do you use .htaccess?
User avatar
manc
Forum Members
Forum Members
Posts: 107
Joined: Wed Apr 01, 2009 12:59 pm

Re: products and category lists

Post 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]
Post Reply

Return to “Modules/Add-Ons”