Changeset 1500 for trunk/include


Ignore:
Timestamp:
Jul 26, 2006, 2:51:08 AM (18 years ago)
Author:
rvelices
Message:

feature 169: each category can have its own image order

Location:
trunk/include
Files:
2 edited

Legend:

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

    r1288 r1500  
    111111  $infos = array('nb_images','id_uppercat','comment','site_id'
    112112                 ,'dir','date_last','uploadable','status','visible'
    113                  ,'representative_picture_id','uppercats','commentable');
     113                 ,'representative_picture_id','uppercats','commentable'
     114                 ,'image_order');
    114115
    115116  $query = '
  • trunk/include/section_init.inc.php

    r1373 r1500  
    343343    if (!isset($page['chronology_field']))
    344344    {
     345      if ( !empty($result['image_order']) and !isset($page['super_order_by']) )
     346      {
     347        $conf[ 'order_by' ] = ' ORDER BY '.$result['image_order'];
     348      }
     349
    345350      $query = '
    346351SELECT image_id
Note: See TracChangeset for help on using the changeset viewer.