Interesting! Thank you :)

On 2011-03-29 5:01 pm, Daniel Roesler wrote:

Howdy,

You wouldn't change $ViewDiffChangesFmt, because that is the format
used for the actual ?action=viewdiff page. What you're looking to do
is to make a formatting change to the ?action=diff page, right?

The ViewDiff recipe does make formatting changes to each diff header
?action=diff page (by a custom $DiffStartFmt), but you're looking to
remove the actual diff content, right?

To do that you need to create a custom DiffHTML function that returns
just a blank space. Here's an example of how you can do that in your
local/config.php file:
SDV($DiffHTMLFunction, 'NoDiffHTML');
function NoDiffHTML($pagename, $diff) {return " ";}

You can also include the ViewDiff recipe to add the comparison radio buttons:
include_once("$FarmD/cookbook/viewdiff.php");

Here's the output with ViewDiff and the custom NoDiffHTML function:
http://i.imgur.com/UjABO.png

You can customize the formatting for $DiffStartFmt, $DiffEndFmt, and
$DiffRestoreFmt so that it looks better (defaults are found in
scripts/pagerev.php and cookbook/viewdiff.php).

Avast!
Daniel Roesler
[email protected]

On Tue, Mar 29, 2011 at 8:12 AM,<[email protected]>  wrote:
Date: Tue, 29 Mar 2011 16:07:55 +0300
From: Kenneth Forsb?ck<[email protected]>
To: [email protected]
Subject: Re: [pmwiki-users] Better diff
Message-ID:<[email protected]>
Content-Type: text/plain; charset=UTF-8; format=flowed

The script has the $ViewDiffChangesFmt which seems like it could be
useful, but how in the world do I get an array of the changes in a page
with timestamp, user, summary, etc., which I could then use to generate
a list?



_______________________________________________
pmwiki-users mailing list
[email protected]
http://www.pmichaud.com/mailman/listinfo/pmwiki-users

Reply via email to