Page 1 of 1

Change the default sorting in Cataloger

Posted: Sun Aug 16, 2009 9:46 pm
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,

Re: Change the default sorting in Cataloger

Posted: Fri Sep 11, 2009 7:59 am
by sirphuzz
Anyone?