Skip to content

scandella/ScandellaSqueeze

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Squeeze plugin for Craft CMS 4.x

Zip one or multiple craft assets on the fly for frontend user to download.

Requirements

This plugin requires Craft CMS 4.x.

Installation

composer require scandella/craft-squeeze

Usage

<form method="post" target="_blank">
    {{ csrfInput() }}
    {{ actionInput('squeeze/download') }}
    <input type="hidden" name="archivename" value="archive">
    <input type="checkbox" name="files[]" value="10"><!-- asset id -->
    <input type="checkbox" name="files[]" value="20"><!-- asset id -->
    <input type="submit" value="Download!">
</form>

To trigger download via url you can use:

/actions/squeeze/download?archivename=archive&files[]=10&files[]=20

Credits

This plugin is a clone of Olivier Bon's plugin just modified to work in Craft 4.

Icon by Yazmin Alanis from the Noun Project

This plugin is mostly a port of Bob's

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages