[pmwiki-users] Deep linking

Randy Brown alongkiss at aprivatespot.com
Fri May 14 16:12:01 CDT 2010

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.

*Page A:*

[[B?approved={$Today} | Continue…]]

*Page B:*
(:if !request approved {$Today}:) (:redirect A quiet=1:) (:ifend:)

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.pmichaud.com/pipermail/pmwiki-users/attachments/20100514/f391b9da/attachment.html>

More information about the pmwiki-users mailing list