Typo3: latest news block on one page only

Although I'm using Drupal I post on Typo3 again.

However, I had the following problem: I want to show a latest news block for tt_news on one special page only. So I defined a new content mapping in TemplaVoila for this block (lib.popular, don't ask why ;-) ).

The answer is quite simple: Check for the page ID and show the stuff on the right page only. First I thought that you have to use GP:id, but that's not the case. Might be obvious to the enlightened, but it was not to me.

  1. ### News LATEST in left column
  2. [globalVar = TSFE:id = 2]
  3. lib.popular < plugin.tt_news
  4. lib.popular {
  5. _LOCAL_LANG.de {
  6. latestHeader = Das Allerneuste vom Neuen!
  7. }
  8. altMainMarkers.TEMPLATE_LATEST = CUSTOM_LATEST_SHORT
  9. altMainMarkers.TEMPLATE_LATEST.wrap = ### | ###
  10. code >
  11. code = LATEST
  12. pid_list >
  13. pid_list = 49 # the pids of the pages where your news are stored
  14. catImageMode = 0
  15. catTextMode = 0
  16. latestLimit = 10
  17. displayList.imageCount = 0
  18. }
  19. [global]

Technorati Tags:Technorati Tags:

Trackback URL for this post:

http://www.schnuckelig.eu/trackback/71
No votes yet