[pmwiki-users] "date based" linked?
Hans
design at softflow.co.uk
Mon Feb 6 04:36:33 CST 2006
Monday, February 6, 2006, 8:09:47 AM, Jan wrote:
> I have a group called "D2006" and in that group I have pages 20060203,
> 20060204, 20060205, etc. I would like to have a link that points that links
> to one of this pages based on the date, so today I would like the link to be
> [[D2006/20060206|Today]]
> tomorrow it should be
> [[D2006/20060207|Today]]
> etc.
> How can I do that?
you would need pmwiki version 2.1.beta15 or higher for this:
Define a page variable {$Today} in config.php:
# add page variable {$Today}, formats today's date as yyyymmdd
$FmtPV['$Today'] = 'strftime("%Y%m%d", time() )';
then write your link as
[[D2006/{$Today}|Today]]
Best,
~Hans
More information about the pmwiki-users
mailing list