[TYPO3-ttnews] link pointing to single view view for Image in LIST will also be rendered without an image
Sacha Vorbeck
Vorbeck at moduleBox.com
Mon May 29 16:44:28 CEST 2006
Hi,
> Is it possible to render the link to the single news only if there is an
> image available? Like "imageWrapIfAny" does for wraps?
I use this now:
displayList {
imageWrapIfAny = <div class="imageleft">|</div>
image {
file.maxW = 120
file.maxH = 300
stdWrap {
spaceAfter = 0
typolink {
parameter = {$plugin.tt_news.singlePid}
useCacheHash = 1
additionalParams.cObject = COA
additionalParams.cObject {
10 = TEXT
10 {
field = uid
wrap = &tx_ttnews[tt_news]=|
required = 1
}
20 = TEXT
20 {
value = {$plugin.tt_news.singlePid}
wrap = &tx_ttnews[backPid]=|
required = 1
}
}
}
}
}
}
@Rupi: would another register like "newsMoreLinkOnlyURL" make sense?
--
Ciao,
Sacha
More information about the TYPO3-project-tt-news
mailing list