[pmwiki-devel] Improvements to page history management

Daniel Roesler diafygi at gmail.com
Sun Mar 1 23:58:31 CST 2009


Howdy all,

Now that 2.2.0 is released, I'd like to propose some new features for
the next version. Specifically, adding some proposed features for page
history management.

View a specific revision of a page ( http://www.pmwiki.org/wiki/PITS/00141 )
-I think there was discussion on this, but it couldn't be decided
whether to revert included pages back to that revision time as well. I
vote for yes, even though it would be more work for me.

Diff comparison of two arbitrarily selected versions (
http://www.pmwiki.org/wiki/PITS/00642 )
-Don't know how people would like to implement this.

Create links to individual changes on history page (
http://www.pmwiki.org/wiki/PITS/00796 )
-This can be done easily by changing $DiffStartFmt in pagerev.php to
include $FmtV['$DiffId']. For example, you could change lines 26-28 in
pagerev.php from:
-------------
SDV($DiffStartFmt,"
      <div class='diffbox'><div class='difftime'>\$DiffTime
        \$[by] <span class='diffauthor'
title='\$DiffHost'>\$DiffAuthor</span> - \$DiffChangeSum</div>");
-------------
to:
-------------
SDV($DiffStartFmt,"
      <div class='diffbox'><div class='difftime'><a name='\$DiffId'
href='{\$PageUrl}?action=diff#\$DiffId'>\$DiffTime</a>
        \$[by] <span class='diffauthor'
title='\$DiffHost'>\$DiffAuthor</span> - \$DiffChangeSum</div>");
-------------

RSS feeds for page histories ( http://pmwiki.org/wiki/PITS/01079 )
-PageFeed already exists as a recipe, but I need to rewrite it and
integrate it into feeds.php.

I volunteer to work on adding these features, but I'd like to discuss
their implementation before I start coding.

Avast!
Daniel Roesler
diafygi at gmail.com



More information about the pmwiki-devel mailing list