I have a lot of news items with different categories. Code below works, but it wraps titles of all news in the same way.
plugin.tt_news.displayList {
title_stdWrap.wrap = <div class="my-class">|</div>
title_stdWrap.insertData = 1
}
I need to wrap title depending on the category of the news item. Something like this (pseudo-code):
plugin.tt_news.displayList {
if (category == 1):
title_stdWrap.wrap = <div class="special-class">|</div>
else:
title_stdWrap.wrap = <div class="my-class">|</div>
title_stdWrap.insertData = 1
}