[pmwiki-users] auto-display date, copyright

The Editor editor at fast.st
Sun Jan 28 16:28:28 CST 2007


On 1/28/07, Kathryn Andersen <kat_lists at katspace.homelinux.org> wrote:
> On Sun, Jan 28, 2007 at 04:17:55PM -0500, The Editor wrote:
> > On 1/28/07, Tegan Dowling <tmdowling at gmail.com> wrote:
> > > 2) Any way to put some wikicode in there so that the year is always correct?
> > >
> >
> > You might try something like the following...  (I couldn't quite get
> > it to work, but maybe someone will help spot the problem).
> >
> > Markup('year', '<inline', '/\(\:year\:\)/', "strftime(time(), %Y)");
>
> Wouldn't it make more sense to make a custom page variable instead?
>
> $FmtPV['$CurrentYear'] = 'strftime("%Y")';


Ah yes, of course!  Just popped off the first thing that popped into my head...

Cheers,
Dan



More information about the pmwiki-users mailing list