[pmwiki-users] Page text variable arithmetic

Guillermo Calderon - INCO calderon at fing.edu.uy
Wed Aug 29 14:07:01 CDT 2007


Steve Glover wrote:
> Hi,
> 
> Is there a way, please, of carrying out either arithmetic or comparisons
> when creating a PTV?
> 
> I have {(ftime fmt="%Y%m%d" when="{$Title}")} which gets the date string
> from my page name as yyyymmdd and {(ftime fmt="%Y%m%d" when="{$Today}")}
> which gets today's date in the same format, and I'd like to be able to
> create a variable that will indicate if page dates are past, present or
> future.
> 

Maybe you can achieve thiat with conditional markup:  (:if date .... :)
Take a look at

       http://www.pmwiki.org/wiki/PmWiki/ConditionalMarkup




More information about the pmwiki-users mailing list