[pmwiki-users] Deep linking
Daniel
dkml at xs4all.nl
Sat May 15 04:59:01 CDT 2010
Yes it works! :)
It used 'date("z")+1' to make it not too obvious.
Thanks
If you like to see it: Page B is http://www.kropveld.net/Wesp/DownloadLS
Randy Brown schreef:
>
> 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-------------
>
More information about the pmwiki-users
mailing list