[TYPO3-UG Dutch] tt_news vraag

Jordan van Bergen jordanvanbergen at gmail.com
Sun May 18 13:19:54 CEST 2008


Lees de volgende thread eens:
http://www.typo3-jack.net/typo3-project-tt-news-lists-netfielders-de/12117-typo3-ttnews-not-showing-date-time-if-archive-date-e-g-1-1-2030-a.html

I would love to have the functionality to not show the date/time belonging
to a newsitem on the individual newspage (single item) if a specific archive
date has been entered (e.g.) 1-1-2030 for a newsitem. At current the
date/time is always showing if added to the template. "normal" items should
show the date/time but items with archive date 1-1-2030 shouldn't show the
date. Do I have to dive into the code and change it myself or is there a way
to do this already?

Ik kreeg rechtstreeks van Rupert het volgende antwoord:

a simple TS condition should do the trick:

plugin.tt_news.displaySingle {
datetime_stdWrap.if.field = archivedate
datetime_stdWrap.if.negate = 1
}

Ik heb dit geprobeerd maar kreeg het niet aan de praat. Iemand een idee hoe 
dit wel aan de praat te krijgen. Ik snap niet helemaal hoe ik het moet 
lezen. Ik probeer dus:

I have entered this in the setup of the
template but it doesn't do the trick for me at the moment. Still the date /
time belonging to an item is showing on the individual news page. For
example 1 news item has:

startdate 1-1-2008
stopdate 31-12-2030
date/time: 1-1-2008
archive date: 1-1-2030

All items show the date/time on the Single news page. But if an item has
archive date: 1-1-2030 the date/time shouldn't show on the Single news page.
I put this into the SETUP of the template:

plugin.tt_news.displaySingle {
datetime_stdWrap.if.field = archivedate
datetime_stdWrap.if.negate = 1
}

Didn't do the trick. Do I have to add someting (the date or so to
datetime_stdWrap.if.field = ?????).

Rupert geeft aan dat het dus met een eenvoudige TS conditie zou moeten 
werken. Ik krijg hem niet spits.

Iemand een idee/suggestie hoe bovenstaande voor elkaar te krijgen?

Groeten,
Jordan 



More information about the TYPO3-UG-dutch mailing list