TYPO3: Add tt_news LATEST as TypoScript Object

This shows how to place a news block on a webpage. When using TemplaVoila you can map tt_news LATEST as a TypoScript Object to a specific place in your HTML Template, and it’s possible to narrow it down to certain pages, where the LATEST Object is added in place of other content.

  1. ### News LATEST in left column on certain pids
  2. [PIDinRootline = 57,98]
  3. lib.newsLatest < plugin.tt_news
  4. lib.newsLatest {
  5.         code >
  6.         code = LATEST
  7.         pid_list >
  8.         pid_list = 78,134 # the pids where news are stored
  9.         catImageMode = 0
  10.         catTextMode = 0
  11.   }
  12. lib.sidebar < lib.newsLatest
  13. [else]
  14. # Put something else in the lib.sidebar
  15. temp.sidebar = TEXT
  16. temp.sidebar.value = <p>Something else</p>
  17. lib.sidebar < temp.sidebar
  18. [end]
This entry was posted in TYPO3/TypoScript. Bookmark the permalink.

One Response to TYPO3: Add tt_news LATEST as TypoScript Object

  1. Serhan says:

    Hi,
    I have been looking for this. TYPO3 is really hard. thanks.

Leave a Reply