Guest User

Untitled

a guest
Jul 17th, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.73 KB | None | 0 0
  1. Wow, that's easy :-) Works perfect, Thanks!
  2.  
  3. But the XML got overwritten when i remap some stuff through the
  4. mapping wizzard, right? Or did TV remember those things meanwhile?
  5.  
  6.  
  7. Am 24.09.2009 um 18:50 schrieb Peter Klein:
  8.  
  9. > Hi Tobias.
  10. >
  11. > Just edit the DS of your TemplaVoila template, and modify the default
  12. > TypoScript setup, from:
  13. >
  14. > -- cut --
  15. > 10 = RECORDS
  16. > 10.source.current=1
  17. > 10.tables = tt_content
  18. > 10.wrap = <!--TYPO3SEARCH_begin--> | <!--TYPO3SEARCH_end-->
  19. > -- cut --
  20. >
  21. > Into:
  22. > -- cut --
  23. > 10 = COA
  24. > 10 {
  25. > 10 = TEXT
  26. > 10.value = This is the default content
  27. > 10.if.isTrue.current = 1
  28. > 10.if.negate = 1
  29. >
  30. > 20 = RECORDS
  31. > 20.source.current=1
  32. > 20.tables = tt_content
  33. > 20.stdWrap.if.isTrue.current = 1
  34. >
  35. > wrap = <!--TYPO3SEARCH_begin--> | <!--TYPO3SEARCH_end-->
  36. > }
  37. > -- cut --
  38. >
  39. > --
  40. > Peter Klein / Umloud Untd.
  41. >
  42. > "Tobias Bruns" <t3listen at gmx.de> wrote in message
  43. > news:mailman.985.1253802217.16651.typo3-project-templavoila at lists.netfielders.de
  44. > ...
  45. >> Hello,
  46. >>
  47. >> is it possible to fill a TemplaVoila field (Editing Type: Content
  48. >> Elements) with default content as long as there are no Content
  49. >> Elements?
  50. >>
  51. >> In the old columns based style, i would do it this way (per
  52. >> TypoScript):
  53. >>
  54. >> temp.mainContent = COA
  55. >> temp.mainContent {
  56. >> 10 = COA
  57. >> 10 {
  58. >> if.isTrue.numRows < styles.content.get
  59. >> 10 < styles.content.get
  60. >> 10.wrap = |
  61. >> }
  62. >> 20 = COA
  63. >> 20 {
  64. >> if.isFalse.numRows < styles.content.get
  65. >> 10 < styles.content.get
  66. >> 10.wrap = |This is the default content
  67. >> }
  68. >> }
  69. >>
  70. >> page.10 {
  71. >> marks.MAIN_CONTENT < temp. mainContent
  72. >> }
  73. >>
  74. >> Is this possible with TamplaVoila in any way?
  75. >
  76. >
Add Comment
Please, Sign In to add comment