Author Topic: disable column ordering  (Read 560 times)

Offline sukisen

  • Jr. Member
  • **
  • Posts: 12
disable column ordering
« on: June 20, 2019, 12:44:52 PM »
I am using roundcube 1.3.6
Now, i have looked at an old entry here  - https://www.roundcubeforum.net/index.php/topic,2302.msg9403.html#msg9403
We do have the configs mentioned in the link , namely $rcmail_config['list_cols'] = array('subject', 'from', 'date', 'size');
My issue is not withe the column orders, the customer wants to DISABLE users from manually dragging and changing the positions of the available columns in the array.
Currently, all users are able to drag these 4 columns and alter their position.
Any help is much appreciated

Offline JohnDoh

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2,275
Re: disable column ordering
« Reply #1 on: June 20, 2019, 03:40:56 PM »
well i guess first i should say that `$rcmail_config` was depreciated in rc 1.0 and it should be `$config`.

to stop users changing the order you can add `list_cols` to the `$config['dont_override']` array.
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and moreā€¦

Offline sukisen

  • Jr. Member
  • **
  • Posts: 12
Re: disable column ordering
« Reply #2 on: June 22, 2019, 05:22:18 AM »
This worked JohnDoh, sorry for asking such a basic question but I am very new to roundcube...