Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cdaecke/md_news_clickcount
TYPO3 extension to count views of ext:news records.
https://github.com/cdaecke/md_news_clickcount
php typo3 typo3-cms-extension typo3-extension
Last synced: about 2 months ago
JSON representation
TYPO3 extension to count views of ext:news records.
- Host: GitHub
- URL: https://github.com/cdaecke/md_news_clickcount
- Owner: cdaecke
- License: other
- Created: 2021-05-02T19:17:23.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2024-09-05T12:42:21.000Z (4 months ago)
- Last Synced: 2024-11-08T02:19:41.892Z (about 2 months ago)
- Topics: php, typo3, typo3-cms-extension, typo3-extension
- Language: PHP
- Homepage:
- Size: 53.7 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
- Changelog: Changelog
- License: LICENSE.txt
Awesome Lists containing this project
README
# TYPO3 Extension `md_news_clickcount`
With this extension you are able, to count views/clicks of `ext:news`-records. Additionally it integrates a new option
in the plugin of `ext:news` to show records ordered by views. On top there is a scheduler task for automatically
reset all counts.## Requirements
- TYPO3 11.5 || 12.4
- ext:news >= 9.2## Installation
- Install the extension by using the extension manager or use composer (`composer req mediadreams/md_news_clickcount`)
- Include the static TypoScript of the extension## Usage
### Count views
- In the news detail view template add the following code:
`{md:getCountImg(newsUid: '{newsItem.uid}', pageUid: '{contentObjectData.pid}')}`
Make sure, that you import the namespace to the ViewHelper by adding the following line at the top of the template:
`{namespace md=Mediadreams\MdNewsClickcount\ViewHelpers}`### Show most read news
- Insert the plugin `News system` of `ext:news` on a page
- In `Settings` tab select `List view (without overloading detail view)` in the `What to display` dropdown
- Select `Views` in the `Sort by` dropdown
- Select a `Sort direction` (`Descending` will show the most viewed articles first)
- Save and close### Spam prevention
In the extension settings, you are able to set `daysForNextCount`, which adds an IP check. So multiple views of the same
IP address in the given timespan (days) will be counted just once.By default this functionality is disabled (`daysForNextCount = 0`)
ATTENTION:
If you have set `daysForNextCount` to something higher than 0, please make sure, that you activate the scheduler task
`mdNewsClickcount:cleanupLogCommand` of type `Execute console commands` in order to meet the GDPR requirements! This
will clean up the log.### Clear views
- Add a scheduler task of type `Execute console commands`
- Select `mdNewsClickcount:clearViewsCommand` in `Schedulable Command` dropdown## Bugs and Known Issues
If you find a bug, it would be nice if you add an issue on [Github](https://github.com/cdaecke/md_news_clickcount/issues).# THANKS
Thanks a lot to all who make this outstanding TYPO3 project possible!
## Credits
- Extension icon was copied from [ext:news](https://github.com/georgringer/news) and enriched with a pen from [Font Awesome](https://fontawesome.com/icons/hand-pointer?style=solid).