[TYPO3] special wrap for "new until" pages?
Peter Klein
peter at umloud.dk
Sat Jun 9 21:34:02 CEST 2007
Hi Jan. Why do you belive that it can't be used in menus?
There's several ways you can do it, like using the before/after properties..
something like..
NO {
after = TEXT
after.value = [NEW]
after.if.value.data = date:U
after.if.isGreaterThan.data = page:newUntil
}
If that doesn't work. try changing "after" to "after.cObject"
--
Peter Klein / Umloud Untd.
"Jan Slusarczyk" <jan.slusarczyk at dobrestrony.pl> wrote in message
news:mailman.1.1181412596.31296.typo3-english at lists.netfielders.de...
> Peter Klein wrote:
>> Hi Jan. You can compare the field with the current time/date, like this:
>>
>> -- cut --
>> lib.newpage = COA_INT
>> lib.newpage {
>> 10 = TEXT
>> 10.value = <div>Page is NEW</div>
>> 10.if.value.data = date:U
>> 10.if.isGreaterThan.data = page:newUntil
>> }
>> page.323 < lib.newpage
>> -- cut --
>
> Thanks. It's a pity it cannot be used in menus or sitemaps...
> Cheers
> Jan
More information about the TYPO3-english
mailing list