Roundcube Community Forum

 

Change order of inbox columns by default

Started by calande, November 15, 2007, 04:45:39 PM

Previous topic - Next topic

calande

In main.inc.php, I suggest changing from:

$rcmail_config['list_cols'] = array('subject', 'from', 'date', 'size');
To:

$rcmail_config['list_cols'] = array('from', 'subject', 'date', 'size');
:)

Thomas CARTER

Hi, my client wants from first too, but what would be nice would be user-configerable column order...
ps : great software, thanks

climaxy

Is this already possible? I'm running on rc-0.2.1
For me it seems, that it's still just possible to modify this globally within the main.inc.php but I have also users who wanna modify the order individually?

If not, I would post a Ticket in trac....

greetz
climaxy

Julius Caesar

The column order can also be supplied in the theme. You take the following actions:

In the main.inc.php:

$rcmail_config['list_cols'] = array('subject', 'from', 'date', 'size');

  • Make a copy of the current theme


  • Modify the mail.html in the templates folder:


  id="messagelist"
  cellspacing="0"
  columns=""
  summary="Message list"
  messageIcon="/images/icons/dot.png"
  unreadIcon="/images/icons/unread.png"
  deletedIcon="/images/icons/deleted.png"
  repliedIcon="/images/icons/replied.png"
  forwardedIcon="/images/icons/forwarded.png"
  forwardedrepliedIcon="/images/icons/forwarded_replied.png"
  attachmentIcon="/images/icons/attachment.png"
  flaggedIcon="/images/icons/flagged.png"
  unflaggedIcon="/images/icons/blank.gif" />

Modify the line columns="" with the new order of columns:

columns="from,subject,date,size"

  • Let the user select this theme
Julius Caesar

You can download the Groupvice4 theme here.
Sie können Groupvice4 hier he

climaxy

Thank you, Julius...I've tried this and it's working fine.

BUT: wouldn't it be in general more handy, to give simple directly each user either via settings the possibility to set the order of the fields (because if 10 clients wanna have each a different order, I'd have to create 10 different themes...) or even better, to have the possibility to drag 'n' drop directly the fields with the mouse within the mailbox view.

br
climaxy

Julius Caesar

Well, I'm currently developing (actually I still have to start) a new version of the GroupVice theme. Perhaps I can try to add a similar feature to this theme.

No promises, but I'll try to get this incorporated
Julius Caesar

You can download the Groupvice4 theme here.
Sie können Groupvice4 hier he