On 1/28/07, Kathryn Andersen <[EMAIL PROTECTED]> wrote:
> On Sun, Jan 28, 2007 at 04:17:55PM -0500, The Editor wrote:
> > On 1/28/07, Tegan Dowling <[EMAIL PROTECTED]> 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
_______________________________________________
pmwiki-users mailing list
[email protected]
http://www.pmichaud.com/mailman/listinfo/pmwiki-users