[pmwiki-users] Amending ctime from Within PmWiki

Patrick R. Michaud pmichaud at pobox.com
Wed Jul 19 10:04:09 CDT 2006


On Tue, Jul 18, 2006 at 07:57:33AM +0100, Ian Barton wrote:
> Patrick R. Michaud wrote:
> > On Mon, Jul 17, 2006 at 08:05:55PM +0100, Ian Barton wrote:
> >>>> Is there a way from within PmWiki to amend the ctime of a page? I am 
> >>>> using newpagebox plus to create the page, so I guess a I need to create 
> >>>> a function within it to update the ctime to the reflect the date 
> >>>> specified by the page name. Any ideas or pointers appreciated.
> > 
> > PmWiki *never* overwrites the ctime, so that's not the issue.  
> > 
> Thanks Patrick. I have now found the problem, but not the solution:) I 
> was using a template with NewPageBoxPlus. If I don't use a template, I 
> can set the ctime OK. I would guess that if I use a template the page 
> already has a ctime, so PmWiki won't update it. Is there any way to 
> modify this behaviour?

Although PmWiki never overwrites the ctime, that doesn't mean
that you (or NewPageBoxPlus) can't do so.  The correct solution
is probably for NewPageBoxPlus to replace the template's ctime
with an updated ctime.

Pm




More information about the pmwiki-users mailing list