georgringer / news-like
Add possibilities to add a simple like button to news items
Installs: 6
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 0
Forks: 0
Open Issues: 0
Type:typo3-cms-extension
Requires
- georgringer/news: ^6.0 || ^7.0
- typo3/cms-core: ^8.7
Replaces
- news_like: dev-master
- typo3-ter/news-like: dev-master
This package is auto-updated.
Last update: 2019-12-29 05:23:39 UTC
README
This extension makes it possible to add a simple like button to a news record and to show the amount of likes.
Requirements
- TYPO3 8.7 LTS
- EXT:news 6+
Usage
-
Install the extension by either use composer
composer require georgringer/news-like
or by downloading it from the TER. -
Adopt the
Detail
template by adding something like this
<button
class="news-like-js"
data-news="{newsItem.uid}"
data-hash="{newsItem.txNewslikeHash}">like me
</button>
<div class="news-like-text-js" style="display: none">
This news has been liked <span>0</span> times.
</div>
- Embed the JS shipped with the extension or adopt it to your needs. It can be found at
EXT:news_like/Resources/Public/JavaScript/newsLike.js
.
Sponsor
This extension has been sponsored by Steindesign Werbeagentur GmbH from Hannover, Germany - https://www.steindesign.de/.
Thanks a lot!