[pmwiki-users] auto-display date, copyright
Kathryn Andersen
kat_lists at katspace.homelinux.org
Sun Jan 28 15:33:22 CST 2007
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")';
Kathryn Andersen
--
_--_|\ | Kathryn Andersen <http://www.katspace.com>
/ \ |
\_.--.*/ | GenFicCrit mailing list <http://www.katspace.com/gen_fic_crit/>
v |
------------| Melbourne -> Victoria -> Australia -> Southern Hemisphere
Maranatha! | -> Earth -> Sol -> Milky Way Galaxy -> Universe
More information about the pmwiki-users
mailing list