codemonkey1988 / responsive-images
使用picture标签为TYPO3添加对多种浏览器类型的响应式图片支持。
3.1.3
2024-03-08 19:32 UTC
Requires
- php: ^7.4 || ^8.0
- typo3/cms-core: ^10.4 || ^11.5 || ^12.4
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.11
- phpstan/phpstan: ^1.8.5
- saschaegerer/phpstan-typo3: ^1.1.2
- sbuerk/typo3-cmscomposerinstallers-testingframework-bridge: ^0.0.1
- typo3/cms-filelist: ^10.4 || ^11.5 || ^12.4
- typo3/cms-fluid-styled-content: ^10.4 || ^11.5 || ^12.4
- typo3/testing-framework: ^6.16.6 || ^7.0 || ^8.0
Replaces
- typo3-ter/responsive-images: 3.1.3
This package is auto-updated.
Last update: 2024-09-01 22:05:53 UTC
README
此扩展为流体模板添加了响应式图片支持。
信息
此扩展基于以下假设:前端图片大小取决于当前上下文(例如,在Bootstrap col-6中,图片需要比在col-12中小)。TYPO3编辑器不应能够直接选择图片大小。它始终取决于前端渲染上下文。
安装
composer require codemonkey1988/responsive-images
- 在扩展管理器中激活扩展
- 可选:添加TypoScript模板 Responsive images default configuration (optional) 或 Responsive images bootstrap configuration (optional)
完整文档请参阅 https://docs.typo3.org/p/codemonkey1988/responsive-images/main/en-us/