heimrichhannot / contao-watchlist
A contao watchlist, for download elements.
Installs: 136
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 9
Forks: 0
Open Issues: 0
Type:contao-module
Requires
- php: ~5.4 || ~7.0
- contao/core-bundle: ^3.5.1 || ~4.1
- heimrichhannot/contao-request: ~1.2
README
A contao watchlist, for download elements.
Features
- use single or multiple watchlist
- generate link to watchlist (durability 30 days)
- define durability of the watchlist
- users of the same group can use same watchlist
- download watchlist items and watchlist
Installation
Install via composer
composer require heimrichhannot/contao-watchlist
Afterwards call the Contao install procedure to update the database.
Add Item Button
$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 is the uuid of the \Contao\FileModel
- $multiple is true or false for the usage of the single or multiple watchlist