Project-Id-Version: Trac 0.12
POT-Creation-Date: 2008-01-30 09:20+0100
PO-Revision-Date: 2010-07-19 23:05+0200
Last-Translator: Jeroen Ruigrok van der Werven <>
Language-Team: en_US <>
Plural-Forms: nplurals=2; plural=(n != 1)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Generated-By: Babel 0.9.6

Warning: Can't synchronize with repository "(default)" (Unsupported version control system "git": Can't find an appropriate component, maybe the corresponding plugin was not enabled? ). Look in the Trac log for more information.

Ticket #88 (accepted improvement)

Opened 10 years ago

Last modified 7 years ago

Wish: Set the default sort order as a system preference

Reported by: remy Owned by: sebastian
Priority: trivial Milestone: 2.4
Component: config Version: trunk
Keywords: Cc:


Currently images are ordered default by date descending. But if you have a set of (holiday) pictures, you normally would like to show them by date ascending. A preference would be nice where you can set the default sort order.

Change History

comment:1 Changed 10 years ago by sebastian

  • Owner set to sebastian
  • Status changed from new to accepted
  • Milestone set to 2.2

As temporary solution and also written at the mailing list: you can manually change your default order preference in app/controllers/components/search.php about line 75. Change the sort parameter to one of: date, -date, newest, changes, viewed, popularity, or random.

  /** Default values */
  var $defaults = array(
    'page' => '1',
    'pos' => false,
    'show' => '12',
    'sort' => '-date',

comment:2 Changed 10 years ago by remy

  • Cc added

comment:3 Changed 8 years ago by sebastian

  • Milestone changed from 2.2 to 2.4

comment:4 Changed 7 years ago by stevko

There seem to be (at least) two places where some default for explorer is set. One is in Controller/Component/SearchComponent?.php (array $defaults where sort is set to 'default' (whatever that means) and page size (show) is set to 12) and other is in View/Helper/SearchHelper?.php (array config where page size (show) is set to 12). I think these would be better in Config, so that one could set default page size ('show') and sort order.

comment:5 Changed 7 years ago by sebastian

One option would be to write the default values to the config file. This would be a global setting for every user. A better solution would be to store these values to the user options.

@stevko: Do you have some programming experience and would like to implement these feature? I can provide hints to get into the code if you like.


Note: See TracTickets for help on using tickets.