[TYPO3] special wrap for "new until" pages?

Georg Rehfeld georg.rehfeld at gmx.de
Sun Jun 10 01:12:46 CEST 2007


Hi Jan, Peter, all,

Peter Klein wrote:
>> Thanks. It's a pity it cannot be used in menus or sitemaps...
>> 
> 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
> }

2 small corrections (Peter seems to have been in a hurry here):

- it is enough to just set after =  [NEW]
- for menus field:newUntil _must_ be used instead of page:newUntil
   because page:... always refers to the page where the menu is shown
   on, thus on a new page _all_ menu entries are flagged as new, on
   other pages _none_ is flagged. But field:... refers to then record at
   hand while processing, in case of menu entries, that is the page
   for which a menu entry is just generated

So a working sample is:

NO {
   after =  [NEW]
   after.if.value.data = date:U
   after.if.isGreaterThan.data = field:newUntil
}

HTH, Georg
-- 
   ___   ___
  | + | |__    Georg Rehfeld      Woltmanstr. 12     20097 Hamburg
  |_|_\ |___   georg.rehfeld.nospam at gmx.de    +49 (40) 23 53 27 10

               (Delete .nospam from mail address)


More information about the TYPO3-english mailing list