EE 1
EE 2
MX Zip
Developer
3rd Party (Free)
Compatibility
- LG Addon Updater
- Multi Site Manager
- Stand Alone Entry Form
Requirements
- jQuery for the Control Panel
Tags
The MX Zip plugin for ExpressionEngine gives you the capability to add files into into zip archive directly from an ExpressionEngine template.
Tags
{exp:zip direct_output="no" folder="images" filename="min.zip" max_size="1024" root_level="-3"}
{zip:files}
[themes/cp_global_images/watermark_test.jpg]
[themes/cp_global_images/ee_logo.jpg,expressionengine]
[themes/profile_themes/]
[themes/cp_themes/classic/classic.css]
{/zip:files}
File Limit!
{/exp:zip}
- Parameters
- direct_output — the plugin can sent direct to user or can save package file on the web server
- 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
- store_full_path (optional) — use the real path in zip folder structure or not (default - yes)
- root_level (optional) — if you use full_path tag max_root_level, it gives you an opportunity to cut up some folder levels. Folder levels can be a possitive and negative, in last case the levels counted from the most deep level, so if the real path is
folder4/Folder3/Folder2/Folder1/file.doc
and:
root_level = “-3”(take only 3 folders from the end) in zip package you will have Folder3/Folder2/Folder1/file.doc
root_level = “2” (except 2 folders from beginning) in zip package you will have Folder2/Folder1/file.doc (except 2 folders fron beginig) - 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. - 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
MX Zip Links
This entry was last updated February 8, 2012, 9:06 pm.
Disclaimer: Information about ExpressionEngine add-ons is provided as a service to you, the user, and every member of the ExpressionEngine community. Devot:ee is not responsible if you hose, mangle, wreck, or otherwise destroy your EE website by installing an add-on that you found out about at this site, regardless of its rating, Favorites status, commercial or free status, or general popularity. Caveat EEmptor!
There are no reviews for this add-on yet.
What are you waiting for? Rate it and review it!