Ignore:
Timestamp:
Sep 11, 2008, 11:40:00 PM (16 years ago)
Author:
plg
Message:

feature 169 added: ability to manually sort images inside a category. A
dedicated screen let the administrator sort the images (pur HTML, no
JavaScript yet). The "rank" sort order is available only for a category
without flat mode. New database column image_category.rank.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/functions_category.inc.php

    r2433 r2517  
    258258function get_category_preferred_image_orders()
    259259{
    260   global $conf;
     260  global $conf, $page;
     261 
    261262  return array(
    262263    array(l10n('default_sort'), '', true),
     
    265266    array(l10n('Creation date'), 'date_creation DESC', true),
    266267    array(l10n('Post date'), 'date_available DESC', true),
    267     array(l10n('File name'), 'file ASC', true)
    268   );
     268    array(l10n('File name'), 'file ASC', true),
     269    array(
     270      l10n('Rank'),
     271      'rank ASC',
     272      ('categories' == $page['section'] and !isset($page['flat']))
     273      )
     274    );
    269275}
    270276
Note: See TracChangeset for help on using the changeset viewer.