Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/heimrichhannot/contao-watchlist
A contao watchlist, for download elements.
https://github.com/heimrichhannot/contao-watchlist
Last synced: about 1 month ago
JSON representation
A contao watchlist, for download elements.
- Host: GitHub
- URL: https://github.com/heimrichhannot/contao-watchlist
- Owner: heimrichhannot
- Created: 2015-04-07T15:42:48.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2018-06-12T09:10:43.000Z (over 6 years ago)
- Last Synced: 2024-04-01T02:42:53.215Z (9 months ago)
- Language: PHP
- Size: 174 KB
- Stars: 1
- Watchers: 9
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# Watchlist
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