[pmwiki-users] [PATCH] create links to individual changes on history page

Patrick R. Michaud pmichaud at pobox.com
Mon Aug 14 08:45:34 CDT 2006

On Mon, Aug 14, 2006 at 01:10:25PM +0000, Johannes Winkelmann wrote:
> Hi,
> For a setup of ours, we wanted to link directly to particular wiki
> changes from the history. To achieve this, I've introduced a link anchor
> using the timestamp of a change, allowing to link via
>   ?action=diff#<timestamp>

Nice!  This is a good idea for the core.

Thinking a bit larger for a second, I've been working on improving
date/time handling throughout PmWiki, primarily to be able to also 
address the issue of viewing a page as of some point in its history.
Thus one would be able to say something like 
..../Main/HomePage?when=2006-01-01 to see the version of 
Main.HomePage that existed as of January 1, 2006. 

So, if we have such date/time routines available, should we generate
anchors something like "#20060807071547" instead?  (And, if we
do, do we use a local timezone or a UTC timezone...?)

Lastly, note that HTML requires that all "id" and "name" values
begin with a letter ([A-Za-z]), so technically "#1154934947" and
"#20060807071547" aren't valid anchor names [1].  It might not
matter for something as esoteric as ?action=diff, but since it
is being generated by $CurrentTimestamp some validators might notice
and complain.

Thanks again!


More information about the pmwiki-users mailing list