Change the default sorting in Cataloger

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
sirphuzz
Forum Members
Forum Members
Posts: 18
Joined: Thu Aug 07, 2008 1:07 pm

Change the default sorting in Cataloger

Post by sirphuzz »

Hi!

I'm using cataloger to diplay a bunch of products. I wanted to have the newest products come first, so I changed the category template to loop negatively instead of positively, see code below:

Code: Select all

<h3>{$title}</h3>
<div class="category_items">
   {if $hasnav == 1}
<div class="catnav">{$prev}{$navstr}{$next}</div>
   {/if}
    {section name=numloop loop=$items start=-1 step=-1}
        <div class="category_item"><a href="{$items[numloop].link}"><img src="{$items[numloop].image}" title="{$items[numloop].title}" alt="{$items[numloop].title}"/></a><br /><a href="{$items[numloop].link}">{$items[numloop].title}</a><br />
{$items[numloop].notes}<br />
{$items[numloop].price}
</div>
    {/section}
    {if $hasnav == 1}
<div class="catnav">{$prev}{$navstr}{$next}</div>
   {/if}
</div>



However, when I add more than 10 items, which I've set as max per page in Cataloger settings, the pages don't get sorted. This means the on page 1 I have items 10-1, and on page 2 comes items 20-11 and so on. How can I make item 20-11 come on page 1? All I want is the default sorting to reverse, how can I accomplish this? I have no idea what the {$navstr} tag is and does...

Thanks,
sirphuzz
Forum Members
Forum Members
Posts: 18
Joined: Thu Aug 07, 2008 1:07 pm

Re: Change the default sorting in Cataloger

Post by sirphuzz »

Anyone?
Post Reply

Return to “Modules/Add-Ons”