Image from tt_news category via TypoScript


/ Published in: TYPO3
Save to your folder(s)



Copy this code and paste it in your HTML
  1. temp.header_img = CONTENT
  2. temp.header_img {
  3. table = tt_news_cat
  4. pidInList = 10
  5. andWhere {
  6. data = GPVar:tx_ttnews|cat
  7. stdWrap.wrap = uid=|
  8. stdWrap.ifEmpty = 3 # default tt_news category
  9. }
  10. max = 1
  11. }
  12. renderObj = IMAGE
  13. renderObj.file {
  14. import.field = image
  15. import = uploads/pics/
  16. width = 688c
  17. height= 206c
  18. }
  19. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.