heimrichhannot / contao-watchlist
用于下载元素的 contao 观察列表。
2.1.2
2018-06-12 09:10 UTC
Requires
- php: ~5.4 || ~7.0
- contao/core-bundle: ^3.5.1 || ~4.1
- heimrichhannot/contao-request: ~1.2
README
用于下载元素的 contao 观察列表。
功能
- 使用单个或多个观察列表
- 生成指向观察列表的链接(有效期30天)
- 定义观察列表的有效期
- 同一组的用户可以使用相同的观察列表
- 下载观察列表项和观察列表
安装
通过 composer 安装
composer require heimrichhannot/contao-watchlist
之后调用 Contao 安装程序以更新数据库。
添加项目按钮
$template->addWatchlist = Watchlist::getAddAction($array, $uuid, $multiple);
$array = [
'name' => 'name of the item',
'type' => 'type of the item (e.g. download)',
'id' => 'id of the item'
];
- $uuid 是 \Contao\FileModel 的 uuid
- $multiple 是用于单个或多个观察列表的使用(true 或 false)