[TYPO3-dev] Output value of device and useragent : newbie question

Éric Thibault Eric.Thibault at dc.ulaval.ca
Thu Feb 11 17:26:12 CET 2010


Excuse my question if it is too simple but I'm stuck on one simple problem... I've been searching the web and forums for 2 days with no luck... I'm an extension developer and PHP programmer !!

For debug purposes, I would like to output the values of « device » and « useragent » from TypoScript in my main template... My goal is to document what Typo3 retrives from different handheld devices.

Here is my code for now :

#output only on my test page
[globalVar = TSFE:id=1492]

  testdevice = COA
  testdevice {
    10 = TEXT
    10 {
      #data = TSFE : id #working OK
      data = {global : device} #not working either with useragent
      wrap = <script>/* | */</script>
    }
  }
  page.headerData.99 < testdevice # Output as an additional header

[end]

Thanks in advance!




More information about the TYPO3-dev mailing list