heimrichhannot/contao-watchlist

用于下载元素的 contao 观察列表。

安装: 135

依赖项: 0

建议者: 0

安全: 0

星标: 1

观察者: 9

分叉: 0

开放问题: 0

类型:contao 模块

2.1.2 2018-06-12 09:10 UTC

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)