2008/7/13 Patrick R. Michaud <[EMAIL PROTECTED]>:
> FWIW, here's my version of the above (in PmWiki 2.2.0-beta66,
> locally adding {$LastModifiedTime}):
>
>  [@
>  [[#colorbydate]]
>  (:if     date -7days..  @{=$LastModifiedTime} :)>>bgcolor=#ffcccc<<
>  (:elseif date -30days.. @{=$LastModifiedTime} :)>>bgcolor=#ccccff<<
>  (:else:)>>bgcolor=#ccffcc<<
>  (:ifend:)
>  * [[{=$FullName}]] {=$LastModified}
>  [[#colorbydateend]]
>  @]
>
> No need to use {(ftime)} at all.  :-)
>
> Demonstrated at http://www.pmwiki.org/wiki/Test/ColorByDate .

Wow, this is turning out to be a competition ;-)

Thanks for your version Patrick.  I see it working on your site, but
does not on mine.  All items go green (#ccffcc) - the last else case
is used.  I'm from the UK so do you think our system date formats
might be to blame?  This might be why Han's version doesn't work as
expected also.

-Steve.

_______________________________________________
pmwiki-users mailing list
[email protected]
http://www.pmichaud.com/mailman/listinfo/pmwiki-users

Reply via email to