[pmwiki-users] Amending ctime from Within PmWiki

Ian Barton lists at manor-farm.org
Mon Jul 17 10:43:57 CDT 2006


Ian Barton wrote:
> I am creating pages in the format yyymmdd. I would like to be able to 
> set the page's ctime to correspond to the page name, as I may not always 
> create the page on the same day as yyyymmdd.
> 
> 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.
> 
Now I have looked at the source for NewPageBoxPlus it seems to be 
straightforward to do what I need.

I'll amend NewPageBoxPlus to optionally set the page ctime to be the 
same as the date derived from the page name. This can be useful if you 
have a blog and want to create pages that have a different date to 
today's date. If the page name in yyyyddmm format and the ctime are the 
same you can order pages by ctime in page lists and the order will 
correspond to the page name in yyyyddmm format. Hope that makes sense!

Ian.





More information about the pmwiki-users mailing list