lochmueller / focuspoint
Focuspoint 将焦点方法集成到网页前端以裁剪图像。使用 jQuery-focuspoint 插件(https://github.com/jonom/jquery-focuspoint 示例 http://jonom.github.io/jquery-focuspoint/demos/helper/index.html)裁剪图像。在文件中使用此功能作为向导。
资助包维护!
lochmueller
paypal.me/lochmueller
Requires
- php: ^8.0
- typo3/cms-core: ^12.4
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.20
- scrutinizer/ocular: ^1.3
- typo3/testing-framework: ^8.0
This package is auto-updated.
Last update: 2024-09-23 22:56:39 UTC
README
安装
添加 TypoScript
在静态模板中包含或向您的扩展或模板中添加 TypoScript 包含。
# Setup must be after "page" TypoScript
@import 'EXT:focuspoint/Configuration/TypoScript/setup'
流体模板(示例)
编辑您的流体模板。
<div style="height: 400px;"> <fp:image image="{image}" width="1000c" height="400c" realCrop="false"/> </div> <div style="height: 400px;"> <fp:image src="{image.uid}" treatIdAsReference="1" width="1000c" height="400c" realCrop="false"/> </div>
自定义 CSS
可能您想添加额外的 CSS,例如流体示例。
.focuspoint { position: relative; height: 100%; overflow: hidden; }
赞助商和支持者
感谢您的支持和赞助此扩展
- Violetta Digital Craft GmbH, www.violetta.ch - 支持TYPO3 v10 和 v11
- 以及 所有贡献者!