formatz / contao-fz-news-list-bundle
Format-Z Contao 新闻列表包
1.3
2023-06-21 08:14 UTC
Requires
- php: >=7.1
- contao/core-bundle: ^4.4
- contao/news-bundle: ^4.4
- symfony/http-kernel: 3.4.* || ^4.1 || ^5.0 || ^6.0
Requires (Dev)
- contao/manager-plugin: ^2.0
Conflicts
- contao/core: *
- contao/manager-plugin: <2.0 || >=3.0
This package is auto-updated.
Last update: 2024-09-21 10:46:09 UTC
README
Format-Z Contao 模块用于新闻列表。
此模块在显示类似新闻时,不会在新闻阅读器中显示当前新闻。此外,还有一些新的字段
- 由
- 提出者的图片
- 标语
这三个字段必须添加到新闻模板中才能使用。
- 提出者 =>
$this->proposed_by
- 提出者的图片 =>
{{image::<?= \StringUtil::binToUuid($this->proposed_by_img) ?>?width=60&height=60&class=img-circle}}
- 标语 =>
$this->slogan
安装
编辑 composer.json
文件并添加一个新的 JSON 块
"repositories": [
{
"type": "vcs",
"url": "https://gitlab.com/formatz/contao-fz-news-list-bundle"
}
],
然后使用以下命令安装包:composer require formatz/contao-fz-news-list-bundle