MX Zip documentation

TagsΒΆ

{exp:zip}

{exp:zip direct_output="no" folder="images" filename="min.zip" max_size="1024" comment="Made in ExpressionEngine" remove_path="" add_path=""}
	{zip:files}
		[themes/cp_global_images/watermark_test.jpg]
		[themes/cp_global_images/ee_logo.jpg]
		[themes/profile_themes/]
		[themes/cp_themes/classic/classic.css]
	{/zip:files}

{/exp:zip}

Parameters

folder

folder whare you want to save your zip files in direct_output = false mode

filename

zip fillename. By default the filename is unix_timestamp.zip

remove_path optional

This parameter gives the ability to suppress a part or all the path of the files (or directories) when they are extracted or archived.

add_path optional

This parameter gives the ability to insert a path while files are extracted or archived.

comment optional

This parameter gives the ability to set a comment in the ZIP archive.

remove_all_path optional

This parameter gives the ability to suppress all the path of the file when extracting it or adding it in the archive.

return_name_only optional

This parameter gives ability to return archive name only

max_size optional

overwrite optional

overwrite file or not

direct_output optional

direct_output="no"

the plugin can sent direct to user or can save package file on the web server

speed optional

speed="500"

Download speed in kb

Conditional variables

if file_limit

You may use this conditional for displaying a message in the case when size of your files preparing for package more then max_size

Variable pairs

{zip:files}[file_or_folder_path,folder_structure4zip]{/zip:files}

A comma separated list of files/folders for packing

      file_or_folder_path - file or folder which you want to zip with full or relative server path.

      folder_structure4zip (optional) - individual folder path for file in the zip archive.