[pmwiki-users] auto-display date, copyright
Tegan Dowling
tmdowling at gmail.com
Sun Jan 28 16:34:13 CST 2007
On 1/28/07, Petko Yotov <5ko at free.fr> wrote:
> On Sun, 28 Jan 2007 16:17:55 -0500, "The Editor" <editor at fast.st> wrote:
> > On 1/28/07, Tegan Dowling <tmdowling at gmail.com> wrote:
> >> 1) any suggestions for the best, general-purpose text for someone who
> > wants
> >> a blanket statement of copyright? E.g. "Copyright 2007 by SiteNameHere.
> > All
> >> rights reserved. Do not duplicate without permission."
> >>
> >> 2) Any way to put some wikicode in there so that the year is always
> > correct?
> >>
> >> Thanks!
> >
> >
> > 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)");
> >
>
> For the date, you can also use a page variable like this:
> $FmtPV['$CurrentYear'] = 'date("Y")';//in config.php
>
> and in the page/skin:
> {$CurrentYear}
>
> See also http://pmwiki.org/wiki/Cookbook/MoreCustomPageVariables .
Thanks, too, for the usage instruction and the link!
Tegan
More information about the pmwiki-users
mailing list