Advertisement
b0r7

typoscript - more than one line in value

Feb 5th, 2014
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. #-this doesnt work
  2. #-several lines as value in constant
  3. #------------------------
  4.  
  5. # typoscript constants
  6. constant.imprint(
  7. <a href="someurl">imprint</a><br>
  8. <p> some short text </p>
  9. )
  10.  
  11. # typoscript setup
  12. temp.imprint = TEXT
  13. temp.imprint.value = {$constant.imprint}
  14. #other code
  15. marks{
  16. IMPRINT < temp.imprint
  17. }
  18.  
  19. #-this works
  20. #-same thing without using constants
  21. #------------------------
  22.  
  23. # typoscript setup
  24. temp.imprint = TEXT
  25. temp.imprint.value(
  26. <a href="someurl">imprint</a><br>
  27. <p> some short text </p>
  28. )
  29.  
  30. #other code,m yada yada
  31. marks{
  32. IMPRINT < temp.imprint
  33. }
  34.  
  35.  
  36. #-solution
  37. #-with the constant setup
  38. temp.imprint = TEXT
  39. temp.imprint.value(
  40. {$constant.imprint}
  41. )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement