承接 scandella/craft-squeeze 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

scandella/craft-squeeze

最新稳定版本:1.0.3

Composer 安装命令:

composer require scandella/craft-squeeze

包简介

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

README 文档

README

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

统计信息

  • 总下载量: 1.42k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: proprietary
  • 更新时间: 2023-02-09