[TYPO3-english] Flagging new news items
Graham Knight
graham.knight5 at gmail.com
Wed Jun 22 15:37:17 CEST 2011
Hi,
I solved my problem posted yesterday
> I am using tt_news on a site where new news postings are fairly infrequent. I would like to flag new postings in some way - perhaps by pre-pending a small image. Is there some way of doing this with TYPOScript?
The following TYPOScript worked for me:
plugin.tt_news.displayList.title_stdWrap {
wrap >
outerWrap = <h3>|</h3>
prepend >
prepend = COA
prepend {
10 = IMAGE
10 {
file = fileadmin/images/layout/new.gif
altText = New Item
params = class=newNewsImage
if {
value = 4
isLessThan.field = datetime
isLessThan.age = days
}
}
}
}
Graham
More information about the TYPO3-english
mailing list