[pmwiki-users] date on main page
StefCT
stefct4 at gmail.com
Mon Dec 5 03:46:33 CST 2016
On 12/05/2016 01:01 AM, StefCT wrote:
> A very crude solution might look like this:
I have updated my suggestion a bit. Now it should display the next three
dates:
(:include {$FullName}#datelist StartDate="today":)
(:include {$FullName}#datelist StartDate="+14days":)
(:include {$FullName}#datelist StartDate="+28days":)
(:if2 false:)
[[#datelist]]
(:if date {$$StartDate}.. 2016-12-04:)2016-12-04
(:elseif date {$$StartDate}.. 2016-12-18:)2016-12-18
(:elseif date {$$StartDate}.. 2017-01-01:)2017-01-01
(:elseif date {$$StartDate}.. 2017-01-15:)2017-01-15
(:ifend:)
[[#datelistend]]
(:if2end:)
Please note that this will only work correctly if all the dates are on
regular intervals.
Stef
More information about the pmwiki-users
mailing list