[TYPO3] tt_news - different format for items with image and items without image...
Giannis Economou
gecon at di.uoa.gr
Sun Jan 27 11:31:47 CET 2008
For anyone who might be interested, here is a solution I worked out for
this:
plugin.tt_news.displayList.subheader_stdWrap.innerWrap {
dataWrap = <div class="short content">
if.isTrue.field = image
}
plugin.tt_news.displayList.subheader_stdWrap.innerWrap2 {
wrap = <div class="long content">
if.isFalse.field = image
}
plugin.tt_news.displayList.subheader_stdWrap {
wrap = |</div>
}
Regards,
Giannis
Giannis Economou wrote:
> Hello,
>
> I'm using tt_news (format based on tt_news_v2_template.html). I'm
> modifying the ###TEMPLATE_LIST###, which include format rules (html) for
> each news item.I would like to differentiate the format, on news image
> existance.
>
> If there is an image (###NEWS_IMAGE###) available, I would like to use a
> wrapping div:
> <div class="image-news-item">...</div>
>
> for the news items.
>
> If there is no image available for an item, I would like to wrap it into a:
> <div class="no-image-news-item">...</div>
>
> Do you have any suggestions, pointers on how to implement this?
>
> Thank you.
>
>
> Best regards,
> Giannis
>
> _______________________________________________
> TYPO3-english mailing list
> TYPO3-english at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english
>
>
More information about the TYPO3-english
mailing list