承接 contextualcode/ezplatform-content-disposition-bundle 相关项目开发

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

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

contextualcode/ezplatform-content-disposition-bundle

最新稳定版本:3.3.3

Composer 安装命令:

composer require contextualcode/ezplatform-content-disposition-bundle

包简介

eZ Platform bundle that gives the ability to specify content dispositions for downloads.

README 文档

README

This bundle gives the ability to customize content dispositions (inline or attachment) for downloads.

You can specify the default content disposition, and content dispositions per mime type.

Installation

  • Run composer require:
$ composer require contextualcode/ezplatform-content-disposition-bundle
  • Enable this bundle in config/bundles.php by adding this line:
    return [
        ...,
        ContextualCode\EzPlatformContentDispositionBundle\ContextualCodeEzPlatformContentDispositionBundle::class => ['all' => true],
    ];

Add this to your routes.yaml:

content_disposition:
  resource: '@ContextualCodeEzPlatformContentDispositionBundle/Resources/config/routing.yml'

Usage

In some parameters block, for example in config/services.yaml, you can specify:

  • A default content disposition:

    ibexa.site_access.config.global.download_content_disposition.default: inline
    
  • A content disposition per mimetype:

    ibexa.site_access.config.global.download_content_disposition.mimetype:
      "application/pdf": inline
      "application/msword": attachment
    
  • Make files cache-control: public, s-maxage=%download_content_disposition.download_file_ttl% and vary by user context hash (default: false).

    ibexa.site_access.config.default.download_content_disposition.public_download: true
    ibexa.site_access.config.default.download_content_disposition.download_file_ttl: 86400
    

    if download_content_disposition.download_file_ttl setting not defined, content.default_ttl will be used.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: GPL-3.0-only
  • 更新时间: 2019-07-23