[TYPO3-ttnews] ###NEWS_IMAGE### is not replaced in latest view
Ralf Heydenreich
rheydenr at justmail.de
Sat Jan 21 23:40:17 CET 2012
Hi all,
in my latest view the ###NEWS_IMAGE### marker is not replaced. Here's my
template:
<!-- ###TEMPLATE_LATEST### begin
This is the template for the latest news, typically displayed on a
frontpage -->
<div id="eventblock2" style="background: url( ###NEWS_IMAGE### ) no-repeat">
<h3 class="blockheader">New!</h3>
<!-- ###CONTENT### begin
This is the part of the template substituted with the list of news: -->
<!-- ###NEWS### begin
Template for a single item
-->
<div id="eyecatcherevent" class="news-latest-item">
<!--###LINK_ITEM###-->###NEWS_TITLE###<!--###LINK_ITEM###-->
</div>
<!-- ###NEWS### end-->
<!-- ###CONTENT### end -->
</div>
<!-- ###TEMPLATE_LATEST### end -->
This produces the following output:
<div id="eventblock2" style="background: url( ###NEWS_IMAGE### ) no-repeat">
<h3 class="blockheader">New!</h3>
<div id="eyecatcherevent" class="news-latest-item">
<a
href="index.php?id=11&tx_ttnews%5Btt_news%5D=1&cHash=242dae93d94035266e9680b6974e2024"
title="Latest News!">Latest News!</a></div>
</div>
</div>
My template snippet:
lib.field_event < plugin.tt_news
lib.field_event {
code = LATEST
pid_list = 14
backPid = 17
limit = 1
displayLatest {
image >
image.stdWrap.cObject = IMG_RESOURCE
image.stdWrap.cObject {
file {
import.field = image
import = uploads/pics/
listNum = 1
maxW = 150
maxH = 215
}
}
}
}
The SINGLE view works fine. What's wrong with that?
Greets,
Ralf.
More information about the TYPO3-project-tt-news
mailing list