Posted By

bokehmedia on 03/30/13


Tagged

event typoscript typo3 ttnews upcoming


Versions (?)

Upcoming event with tt_news


 / Published in: TYPO3
 

URL: http://www.bokehmedia.lv

This allows to show upcoming event on TYPO3 based website.

  1. ### Create in HTML template a marker ###UPCOMING###
  2. UPCOMING = CONTENT
  3. UPCOMING {
  4. table = tt_news
  5. wrap = <div style="padding: 10px">|</div>
  6. where = `datetime` >= unix_timestamp()
  7. #languageField=sys_language_uid
  8. orderBy = datetime ASC
  9. max = 1
  10. selectFields = title,datetime,short
  11. # Page ID with stored news entries
  12. pidInList = 20
  13. }
  14.  
  15. renderObj=COA
  16. renderObj{
  17. 1 = TEXT
  18. 1.value = Next upcoming event
  19. 1.wrap = <h2>|</h2>
  20. 2 = TEXT
  21. 2 {
  22. required = 1
  23. wrap = <h3>|</h3>
  24. field = title
  25. }
  26. 3 = TEXT
  27. 3 {
  28. required = 1
  29. wrap = <span class="teaser-date">|</span>
  30. field = datetime
  31. strftime = %e.%m.%Y. - %H:%M
  32. }
  33. 4 = TEXT
  34. 4 {
  35. required = 1
  36. wrap = <p class="teaser-text">|</p>
  37. field = short
  38. }
  39. }
  40. }

Report this snippet  

You need to login to post a comment.