[TYPO3-english] CONTENT within CONTENT
Arno Dudek
webmaster at adgrafik.at
Tue Apr 3 14:15:24 CEST 2012
Hi list!
I try to make a menu for tt_news like AMENU but already expanded. For
this I search first for the year, than for the articles. But it don't
works like expected. Using 4.7.0beta3
This will work as expected and give mit two years of 2005 and 2006.
(There are two articles one of 2005 and one of 2006 at the moment)
lib.newsYearMenu = COA
lib.newsYearMenu {
10 = CONTENT
10 {
wrap = <ul> | </ul>
table = tt_news
select.pidInList = 7
select.selectFields = YEAR( FROM_UNIXTIME( datetime ) ) AS year
select.groupBy = year
renderObj = COA
renderObj {
wrap = <li> | </li>
10 = TEXT
10.field = year
}
}
}
Now with the second query, with not work. This gives me "2005" and the
article of 2005, but 2006 is missing. If "select.selectFields = title,
short" is additional set, than only "2005" without the article is
printed out.
lib.newsYearMenu = COA
lib.newsYearMenu {
10 = CONTENT
10 {
wrap = <ul> | </ul>
table = tt_news
select.pidInList = 7
select.selectFields = YEAR( FROM_UNIXTIME( datetime ) ) AS year
select.groupBy = year
renderObj = COA
renderObj {
wrap = <li> | </li>
10 = TEXT
10.field = year
20 = CONTENT
20 {
wrap = <dl> | </dl>
table = tt_news
select.pidInList = 7
select.selectFields = title, short
select.where = YEAR( FROM_UNIXTIME( datetime ) ) = '{field: year}'
select.where.insertData = 1
renderObj = COA
renderObj {
10 = TEXT
10.field = title
10.wrap = <dt> | </dt>
10.htmlSpecialChars = 1
20 = TEXT
20.field = short
20.crop = 100 | ... | 1
20.wrap = <dd> | </dd>
20.htmlSpecialChars = 1
}
}
}
}
}
Hope you can help me.
lg arno
More information about the TYPO3-english
mailing list