[TYPO3-english] poll and tt_news

Robert Steindl typo3 at agiloweb.de
Wed Dec 9 23:24:22 CET 2009


Do you need a real poll or only a rating?

We use tt_rating with the following TS in combination with tt_news

page.config.linkVars = tx_ttnews,L

#create the link to the current page used to submit the rating data
plugin.tx_ttrating_pi1.voteform.type = TEXT
plugin.tx_ttrating_pi1.voteform.type.data = getIndpEnv:TYPO3_REQUEST_URL

       # Create Content Object correctly linked to ttt_news
temp.rating = COA_INT
temp.rating {
10 = LOAD_REGISTER
10.tt_news_uid.table = tt_news
10.tt_news_uid.field = uid

20 < plugin.tx_ttrating_pi1
20.rateTable = tt_news
20.rateTableUid.data = register : tt_news_uid
}
temp.rating.stdWrap {
   innerWrap = </h2><div id="rating"> | </div>
}


regards

Robert


Am 09.12.2009 21:34, schrieb La Farge Douglas:
> IS there an extension that will link a poll to a SINGLE tt_news article?
>
> The problem I am running into is if I included jk_poll on the SINGLE tt_news page it shows the same poll (which is to be expected).
>
> I checked the repository but nothing seems to be jumping out that will do the job.
>
> any ideas?
>
> thanks,
> doug
>
> _______________________________________________
> TYPO3-english mailing list
> TYPO3-english at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english
>    



More information about the TYPO3-english mailing list