[TYPO3-ttnews] Rating hook

Kevin Renskers info at dualdot.nl
Sun Apr 9 11:37:12 CEST 2006


Well, that is weird.. I'll repost my email here...


I saw your message on the tt-news group about rating functionality. I 
was not sure if you meant a function that let's YOU add a rating to a 
news article (extending it with an extra field) or if you wanted 
visitors to rate articles.

If you want the first thing, then I made an extension that does just 
that, you can find it in the attachment. I use tt_news for game- and 
movie-reviews, works quite good.

In your TS setup you need to following code:

includeLibs.displayFileLinks = EXT:tt_news_rating/add_marker.php
plugin.tt_news.itemMarkerArrayFunc = user_addRatingMarker

You can then use a new marker ###RATING### in your template file. Good luck!


More information about the TYPO3-project-tt-news mailing list