[TYPO3-english] flvplayer2 and tt_news

Christopher Torgalson bedlamhotel at gmail.com
Tue Jul 28 00:00:32 CEST 2009


Hi,

On Mon, Jul 27, 2009 at 2:49 PM, Markus
Deckmann<Markus.Deckmann79 at web.de> wrote:
> Hi again,
>
> Now flvplayer and tt_news works correctly. Following TS will do this:
>
> ### TS-Start ###
> temp.newsFileRecord = RECORDS
> temp.newsFileRecord {
>        source = {GPvar:tx_ttnews|tt_news}
>        source.insertData = 1
>        tables = tt_news
>        conf.tt_news >
>        conf.tt_news = TEXT
>        conf.tt_news.field = title
>        wrap = http://mydomain/fileadmin/videos/|
> }
>
> plugin.tx_flvplayer_pi1 {
>        width = 550
>        height = 413
>        playerParams.autoStart = 0
>        #url = http://mydomain/fileadmin/videos/example.flv
>        url < temp.newsFileRecord
> }
> #################
>
> url in plugin.tx_flvplayer_pi1 has type stdWrap, but the TypoScript only
> returns RECORDS. temp.newsFileRecord should have the value
> "http://mydomain/fileadmin/videos/"+{value of newstitle}.
>
> Whats wrong with the TS-code? Thanks for help.


Without testing it, it looks as though you've missed a small step; if
the 'url' object has stdWrap, you should be able to do this, but
stdWrap has no 'RECORDS' function which is what your TS code assumes.

When you need to make a cObject in stdWrap, you use (surprise!) the
'cObject' property, so you'll need something like
plugin.tx_flvplayer_pi1.url.cObject < temp.newsFileRecord.

-- 
Christopher Torgalson
http://www.typo3apprentice.com/


More information about the TYPO3-english mailing list