Return to Snippet

Revision: 20027
at November 4, 2009 16:47 by quadratliter


Initial Code
temp.header_img = CONTENT
temp.header_img {
  table = tt_news_cat
  select {
    pidInList = 10
    andWhere {
      data = GPVar:tx_ttnews|cat
      stdWrap.wrap = uid=|
      stdWrap.ifEmpty = 3 # default tt_news category
    }
    max = 1
  }
  renderObj = IMAGE
  renderObj.file {
    import.field = image
    import = uploads/pics/ 
    width = 688c
    height= 206c
  }
}

Initial URL

                                

Initial Description

                                

Initial Title
Image from tt_news category via TypoScript

Initial Tags

                                

Initial Language
TYPO3