[pmwiki-users] Conditional Directive based on time
Patrick R. Michaud
pmichaud at pobox.com
Tue Oct 11 20:28:37 CDT 2005
On Tue, Oct 11, 2005 at 08:00:16PM -0400, Miller, Joshua wrote:
> Hello all,
> I'm trying to set up a conditional directive for an event listing. The
> general idea is that after an event takes place, it "disappears" from the
> The code would be something like this:
> (:if before12062005:)
> Event that occurs on December 6, 2005
> This way, the event would only display until December 6, 2005 and then
> would "roll" off the webpage.
> Can anyone help me out or get me started?
Actually, event listings based on dates were one of the reasons why
I added conditional markup in the first place. :-)
How about conditionals like this instead ...?
(:if date 20051206-20051210 :) display during Dec 6-9, 2005
(:if date -20051206 :) display before Dec 6, 2005
(:if date 20051206- :) display on or after Dec 6, 2005
(:if date 20051206 :) display only on Dec 6, 2005
(:if ! date 20051206 :) display *except* on Dec 6, 2005
(:if date 200512 :) display during Dec 2005
More information about the pmwiki-users