[TYPO3] Menu utilizing newUntil field
Tapio Markula
tapio.markula at dnainternet.net
Tue Mar 28 19:32:19 CEST 2006
Hi
I found
http://typo3.net/tsref/functions/if/
1.
...
2.
30 = TEXT
3.
30.text = NEU!
4.
30.offset = 10,10
5.
30.if {
6.
value.data = date: U
7.
isLessThan.field = newUtil
8.
negate = 1
9.
}
10.
I still doesn't understand the usage of if-stantements in TypoScript
(they are the most difficult issue for me in TypoScript).
How to utilize for some menu newUntil field
value.data = date: U ?
I found somewhere CURRENT_DATE
value.data=CURRENT_DATE ?
Purpose to make a menu from all normal pages, which current date
is greater than field newUntil
Menu would be build on *last edited* menu
tt_content.menu.20.5 {
#wrap = <div class="csc-menu csc-menu-5">|</div>
#special = updated
special {
#mode = manual
limit = 1000
maxAge = 3600*24*1000
}
1=TMENU
1.if {
value.data = date: U
isLessThan.field = newUntil
#negate = 1
NO.linkWrap = |
}
}
More information about the TYPO3-english
mailing list