image from text with gifbuilder


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



Copy this code and paste it in your HTML
  1. lib.header_image = CONTENT
  2. lib.header_image {
  3. table = tt_content
  4.  
  5. select {
  6. // Page where I have my two content elements [sequence of elements is
  7. important]
  8. pidInList = 76
  9. where = (tt_content.colPos=0)
  10. orderBy = sorting
  11. languageField = sys_language_uid
  12.  
  13. renderObj = IMAGE
  14. renderObj.file = GIFBUILDER
  15. renderObj.file {
  16. XY = 350,64
  17. backColor = #01009A
  18.  
  19. // Organisation Logo
  20. 5 = IMAGE
  21. 5.file = fileadmin/images/gradient.jpg
  22.  
  23. // HEADER text of first content element
  24. 10 = TEXTa
  25. 10.text.field = header
  26. 10.text.wrap = |
  27. 10.fontSize = 18
  28. 10.fontColor = white
  29. 10.fontFile = fileadmin/fonts/ARIALN.TTF
  30. 10.align = left
  31. 10.offset = 50,30
  32. 10.niceText = 1
  33. 10.maxWidth = 350
  34.  
  35. // HEADER text of second content element
  36. 30 < .10
  37. 30 = TEXT
  38. 30.text.field = header
  39. 30.text.wrap = |
  40. 30.fontSize = 12
  41. 30.offset = 50,40
  42. }
  43. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.