On May 14, 2010, at 3:23 PM, Daniel wrote:
>
> If there is something like {$Date} in PMwiki, that would create a link
> that changes every day!
> Would that work?
Yes, it should work fine. You will need to put something like this into your
config.php to get the variable (see
http://www.pmwiki.org/wiki/Cookbook/MoreCustomPageVariables):
$FmtPV['$Today'] = 'date("Y-m-d")'; // 2006-03-29
Then the following should redirect the user if the link doesn't contain
"?approved=" followed by today's date.
--------code-----------
*Page A:*
Instructions
[[B?approved={$Today} | Continue…]]
*Page B:*
(:if !request approved {$Today}:) (:redirect A quiet=1:) (:ifend:)
Links...
---------/code-------------
_______________________________________________
pmwiki-users mailing list
[email protected]
http://www.pmichaud.com/mailman/listinfo/pmwiki-users