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