-
Notifications
You must be signed in to change notification settings - Fork 10
Archiver plugin
sjarvela edited this page Feb 27, 2015
·
6 revisions
Archiver plugin is built-in plugin that provides possibility to extract zip archives (later on also tar archives etc) and compress files, as well as download files/folders compressed.
Archiver plugin does not have any parameters. Configure plugin by adding following into configuration.php (or merge into existing plugins array):
$CONFIGURATION = array(
...,
"plugins" => array(
"Archiver" => array(
"compressor" => "[COMPRESSOR]"
"enable_download" => TRUE/FALSE,
"enable_compress" => TRUE/FALSE
"enable_extract" => TRUE/FALSE
)
)
);
Value "COMPRESSOR" is the method used for compressing files, options are:
-
ziparchiveDefault PHP zip library (this is used if setting is not defined) -
nativeUses OS native tools to create the package (not available on all platforms) -
rawPHP implementation of zip packaging
Values "enable_download", "enable_compress" and "enable_extract" control whether archiver actions are available. By default, all actions are enabled, but with this option they can be disabled (by settings FALSE).
Add following into client settings:
<script type="text/javascript">
mollify.App.init({
...
}, [
new mollify.plugin.ArchiverPlugin()
]
});
</script>