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

dev-master 2018-03-16 20:09 UTC

This package is auto-updated.

Last update: 2019-12-29 05:23:39 UTC


README

Donate License

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

  1. Install the extension by either use composer composer require georgringer/news-like or by downloading it from the TER.

  2. 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>
  1. 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!