1. Summary
  2. Files
  3. Support
  4. Report Spam
  5. Create account
  6. Log in

Changeset 457

Show
Ignore:
Timestamp:
04/12/10 11:48:33 (4 years ago)
Author:
mikaelw
Message:

Preserve sorting order between page shifts.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/joomla/templates/mobivisit/html/com_content/category/default_items.php

    r441 r457  
    1414                <legend><?php echo JText::_("Sort")?></legend> 
    1515                <?php 
    16                  
    17                 // Get selected sorting order 
    18                 $orderby = JRequest::getVar('custom_filter_order', ''); 
     16 
     17                global $mainframe; 
     18                $itemid = JRequest::getInt('id', 0) . ':' . JRequest::getInt('Itemid', 0); 
     19                $orderby  = $mainframe->getUserStateFromRequest('com_content.category.list.' . $itemid . '.custom_filter_order', 'custom_filter_order', '', 'cmd');              
    1920 
    2021                // Get user position - if set