Hi,
in mod_k2_content, when you order items from multiple categories by ordering or reverse ordering, wouldn't it make sense to sort by category ordering first? Otherwise items with the same ordering number in different categories would come after each other.
Ie. instead of
the code could be
another addition would be to offer
- category, item ordering
- category reverse, item forward ordering
- category forward, item reverse ordering
- category reverse, item reverse ordering
The items editor doesn't allow to order across categories either, so I can't really achieve an ordered multi category listing with this module.
Apart from that a grouping can be done in a template.
Or have I missed a better way?
in mod_k2_content, when you order items from multiple categories by ordering or reverse ordering, wouldn't it make sense to sort by category ordering first? Otherwise items with the same ordering number in different categories would come after each other.
Ie. instead of
case 'order' :
if ($params->get('FeaturedItems') == '2')
$orderby = 'i.featured_ordering';
else
$orderby = 'i.ordering';
break;
case 'rorder' :
if ($params->get('FeaturedItems') == '2')
$orderby = 'i.featured_ordering DESC';
else
$orderby = 'i.ordering DESC';
break;the code could be
case 'order' :
if ($params->get('FeaturedItems') == '2')
$orderby = 'c.ordering, i.featured_ordering';
else
$orderby = 'c.ordering, i.ordering';
break;
case 'rorder' :
if ($params->get('FeaturedItems') == '2')
$orderby = 'c.ordering desc, i.featured_ordering DESC';
else
$orderby = 'c.ordering desc, i.ordering DESC';
break;another addition would be to offer
- category, item ordering
- category reverse, item forward ordering
- category forward, item reverse ordering
- category reverse, item reverse ordering
The items editor doesn't allow to order across categories either, so I can't really achieve an ordered multi category listing with this module.
Apart from that a grouping can be done in a template.
Or have I missed a better way?