We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Add-Ons
default app icon

MX Zip

By Max Lazar
Templating Utilities
Free

Description

MX Zip helps you create zip archives directly from templates

Template 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}

{/if}

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.
Information
Version 4.2.1
Last Update 6 years ago
Compatibility EE 6, 5, 4, 3
License MIT
Links
  • Documentation
  • Support
Free
ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.