[TYPO3-english] Typoscript CE images and caption

Denis Torgal denis.torgal at yahoo.com
Thu Jun 27 10:02:29 CEST 2013


Thanks Kay, I tried but I didn't understand "dataWrap".

I found my solution

temp.SLIDER3 = CONTENT
temp.SLIDER3 {
  table = tt_content
  select.orderBy = sorting
  select.where = colPos = 1

  renderObj = COA
  renderObj {
   1 = TEXT
   1.field = image
   1.required = 1
   1.split {
    token = ,
    cObjNum = 1
    1 {
     10 = IMAGE
     10 {
      file {
       import = uploads/pics/
       import.current = 1
       height = 460
       width = 950
      }
      wrap=<li>|</li>
     }
    }
   }
   2 = TEXT
   2.field = imagecaption
   2.required = 1
   2.wrap=|
  }
}

Am 25.06.2013 22:45, schrieb Kay Strobach:> Hi,
 >
 > try to use dataWrap:
 >
 > http://wiki.typo3.org/De:stdWrap#dataWrap
 >
 > Regards
 > Kay
 >
 > Am 25.06.13 20:15, schrieb Denis Torgal:
 >> Hi friends,
 >>
 >> I do have here a good peace of TS. It's reading images out of a Content
 >> Element and showing it in the wrap part.
 >> But what I really can't find out, how to fill the values of imagecaption
 >> fields in the placeholder {CAPTION}.
 >> It seems also that this has changed in TYPO3 v 6.1.1.
 >>
 >> temp.SLIDER2 = CONTENT
 >> temp.SLIDER2 {
 >>   table = tt_content
 >>   select.orderBy = sorting
 >>   select.where = colPos = 1
 >>
 >>   renderObj = COA
 >>   renderObj {
 >>    1 = TEXT
 >>    1.field = image
 >>    1.required = 1
 >>    1.split {
 >>     token = ,
 >>     cObjNum = 1
 >>     1 {
 >>      10 = IMAGE
 >>      10 {
 >>       file {
 >>        import = uploads/pics/
 >>        import.current = 1
 >>        height = 460
 >>        width = 950
 >>       }
 >>       wrap=<li>|<div class="banner"><p>{CAPTION}</p></div></li>
 >>      }
 >>     }
 >>    }
 >>   }
 >> }
 >>
 >> Does somebody have an idea? Thanks in advance.
 >>
 >> Denny
 >
 >



More information about the TYPO3-english mailing list