[TYPO3-ttnews] AMENU not showing all Years
Ansgar B.
ansgarb at gmail.com
Fri Apr 2 13:24:15 CEST 2010
Hi all,
I'm trying to implement a usual A(rchive)Menu. Im using the following,
wide spread, solution to display the Archive by year.
There are two problems with this solution:
1. The Year 2011 is displayed as 1970.
Only displayed in the AMenu. Links are correct to 2011.
2. The AMenu does not display all years.
We have news from 2003 in every year. But the AMenu is only
displaying the year 2006,2007,2008,2009,2010 and 2011 (as 1970).
Thanks in advance
Ansgar
FYI the Typoscript I'm using to generate the AMENU:
archiveTitleCObject >
archiveTitleCObject = COA
archiveTitleCObject{
# Month
10 = COA
10 {
10=TEXT
10 {
field = start
strftime = %b -
wrap = <em>|
}
11 = TEXT
11 {
field = stop
strftime = %b
wrap = |</em>
}
if {
value.field = start
equals.data = GP:tx_ttnews|pS
}
}
# Year
20 = COA
20{
10 = TEXT
10 {
field = start
strftime = %b -
wrap =
}
11 = TEXT
11 {
field = stop
strftime = %b / %Y
wrap =
}
if {
value.field = start
equals.data = GP:tx_ttnews|pS
negate = 1
}
}
}
More information about the TYPO3-project-tt-news
mailing list