Request to change plugin load workflow
-
Hi!
I want to use the "Nextcloud Attachment" plugin (see here) because it would be great to have it.
Unfortunately it needs to be loaded before any other attachment plugin. From the readme:
When enabling the plugin make sure to place it before any other attachment plugins like filesystem_attachments E.g.
$config['plugins'] = array('nextcloud_attachments', /*...*/ 'filesystem_attachments', /*...*/ 'vcard_attachments' /*...*/);
At the moment the plugins coming with the package are loaded like this:
$config['plugins'] = array('acl', 'archive', 'attachment_reminder', 'emoticons', 'managesieve', 'markasjunk', 'newmail_notifier', 'vcard_attachments', 'zipdownload');
I would suggest:
- Create an empty array for the plugins
- require_once "/app/data/customconfig.php";
- array_push($config['plugins'], 'acl', 'archive', 'attachment_reminder', 'emoticons', 'managesieve', 'markasjunk', 'newmail_notifier', 'vcard_attachments', 'zipdownload')
Could that be possible?
-
@jaschaezra
/app/data/customconfig.php
is loaded in the very end - https://git.cloudron.io/cloudron/roundcube-app/-/blob/master/config.inc.php?ref_type=heads#L64 . You can do whatever php manipulation to$config['plugins']
in that file. Wouldn't that be enough? -
If someone can tell me how I can manipulate the array that plugins from /app/data/customconfig.php are loaded first because I have nearly no clue about php.
-
@jaschaezra what did you do?