Image from tt_news category via TypoScript
Copy this code and paste it in your HTML
temp.header_img {
table = tt_news_cat
pidInList = 10
andWhere {
data = GPVar:tx_ttnews|cat
stdWrap.ifEmpty
= 3 # default tt_news category }
max = 1
}
renderObj.file {
import.field = image
import = uploads/pics/
width = 688c
height= 206c
}
}
Report this snippet
Comments
Subscribe to comments