Startpage >> PmWiki >> PageHistory

Page History

PmWiki.PageHistory History

Hide minor edits - Show changes to output

August 31, 2011, at 11:59 AM by Blahma -
Changed lines 1-40 from:
That's more than sneisble! That's a great post!
to:
(:Summary: History of previous edits to a page:)
(:Audience: authors (basic) :)
When PmWiki is called with '?action=diff', it displays a summary of past edits on a page. Each past edit is shown in a box which shows lines added, changed or deleted during that edit in a before & after format.

Below each box is a "Restore" link. Clicking the link will open an edit box with the page as it was ''before'' that edit. You can make changes or simply click Save to restore the text.

There are two additional options specific to Page''''History:

* '''Hide minor edits''' - hides any edit that the author marked as 'minor'. - This is done by adding "&minor=n" to "?action=diff". The default value for this is to show minor edits with "&minor=y"

* '''Show changes to markup'''- It shows changes to the markup (as opposed to the normal display which shows changes to the output). This is done by adding "&source=y" to "?action=diff". You can show changes to output (the default behavior) with "&source=n".

* You can set both by using "?action=diff&source=y&minor=y".

A page's history is kept for the number of days given by the $DiffKeepDays variable (set by the site's [[wiki administrator]]). When a page is edited, any page history information older than this value is automatically discarded.

Note that a specific page revision isn't removed from the page until the first edit ''after'' the time specified by $DiffKeepDays has elapsed. Thus, it's still possible for some pages to have revisions older than $DiffKeepDays -- such revisions will be removed the next time those pages are edited.

!! See also
* Cookbook:ExpireDiff
* Cookbook:LimitDiffsPerPage, Cookbook:InlineDiff
* Cookbook:TrackChanges

>>faq<< [[#faq]]

Q: [[#removepagehistory]] Is there a way to remove page history from page files?
A: 1. Administrators can clean page histories using the Cookbook:ExpireDiff recipe.

A: 2. Administrators with FTP file access can download individual pages from the wiki.d directory, open them in a text editor, manually remove history, and re-upload the files to wiki.d/ directory. Care must be exercised, when manually editing a page file, to preserve the minimum required elements of the page and avoid corrupting its contents. See [[PmWiki/PageFileFormat#creating]].

A: 3. Edit the page. Select ''all'' the contents of the edit text area and cut them to the clipboard. Enter @@delete@@ into the text area and click on the ''save and edit'' button. Select ''all'' the contents of the edit text area and paste the contents of the clipboard over them. Click on the ''save'' button. This will remove all of the page's history up to the final save in which the pasted material is re-added.

Q: [[#restrictpagehistory]] How can I restrict viewing the page history [@(?action=diff)@] to people with edit permission?
A: In the ''local/config.php'' file, set

->[@$HandleAuth['diff'] = 'edit'@];

In case of this restriction is set up on a farm, and you want to allow it on a particular wiki, set in your local/config.php :

->[@$HandleAuth['diff'] = 'read'@];
July 19, 2011, at 08:16 PM by Connie - hhMNXUFBdtbH
Changed line 1 from:
My hat is off to your astute cmoanmd over this topic-bravo!
to:
That's more than sneisble! That's a great post!
July 19, 2011, at 06:25 PM by Dahrann - MiQKIpfIUkEuIv
Changed line 1 from:
You're on top of the game. Thanks for shainrg.
to:
My hat is off to your astute cmoanmd over this topic-bravo!
July 19, 2011, at 05:17 PM by Idalee - IbYMcXQeRwrirQV
Changed line 1 from:
Heckuva good job. I sure aprpceiate it.
to:
You're on top of the game. Thanks for shainrg.
July 19, 2011, at 03:41 PM by Janaya - ATsvhpFPaEk
Changed line 1 from:
You got to push it—this essenital info that is!
to:
Heckuva good job. I sure aprpceiate it.
July 18, 2011, at 12:29 PM by River - SqXPvMFeBbQ
Changed line 1 from:
Hats off to whoever wrote this up and psoetd it.
to:
You got to push it—this essenital info that is!
July 18, 2011, at 06:35 AM by Klondike - eFhCaanfNPE
Changed line 1 from:
This information is off the hzoiol!
to:
Hats off to whoever wrote this up and psoetd it.
July 18, 2011, at 02:58 AM by Mccayde - elEcABEvoAwZ
Changed line 1 from:
I'm out of league here. Too much brain power on dspilay!
to:
This information is off the hzoiol!
July 17, 2011, at 10:38 PM by Coralee - iRirULUECunjKKQ
Changed line 1 from:
Ppl like you get all the brnais. I just get to say thanks for he answer.
to:
I'm out of league here. Too much brain power on dspilay!
July 08, 2011, at 02:20 AM by Blessing - wDimBBQC
Changed line 1 from:
R0KMgn , [url=http://fbnmphagucdn.com/]fbnmphagucdn[/url], [link=http://rfmhqsnqedds.com/]rfmhqsnqedds[/link], http://qdkgemknqmed.com/
to:
Ppl like you get all the brnais. I just get to say thanks for he answer.
July 07, 2011, at 03:39 PM by tposwvavg - FrITHipB
Changed line 1 from:
Xj9R7m <a href="http://tgdvwnaujfia.com/">tgdvwnaujfia</a>
to:
R0KMgn , [url=http://fbnmphagucdn.com/]fbnmphagucdn[/url], [link=http://rfmhqsnqedds.com/]rfmhqsnqedds[/link], http://qdkgemknqmed.com/
July 07, 2011, at 09:51 AM by lxblkf - LHDhSnXqI
Changed line 1 from:
Cheers pal. I do appreciate the wrtiing.
to:
Xj9R7m <a href="http://tgdvwnaujfia.com/">tgdvwnaujfia</a>
July 06, 2011, at 01:31 PM by Amberlee - XzhnlDXbBJdXl
Changed lines 1-40 from:
(:Summary: History of previous edits to a page:)
(:Audience: authors (basic) :)
When PmWiki is called with '?action=diff', it displays a summary of past edits on a page. Each past edit is shown in a box which shows lines added, changed or deleted during that edit in a before & after format.

Below each box is a "Restore" link. Clicking the link will open an edit box with the page as it was ''before'' that edit. You can make changes or simply click Save to restore the text.

There are two additional options specific to Page''''History:

* '''Hide minor edits''' - hides any edit that the author marked as 'minor'. - This is done by adding "&minor=n" to "?action=diff". The default value for this is to show minor edits with "&minor=y"

* '''Show changes to markup'''- It shows changes to the markup (as opposed to the normal display which shows changes to the output). This is done by adding "&source=y" to "?action=diff". You can show changes to output (the default behavior) with "&source=n".

* You can set both by using "?action=diff&source=y&minor=y".

A page's history is kept for the number of days given by the $DiffKeepDays variable (set by the site's [[wiki administrator]]). When a page is edited, any page history information older than this value is automatically discarded.

Note that a specific page revision isn't removed from the page until the first edit ''after'' the time specified by $DiffKeepDays has elapsed. Thus, it's still possible for some pages to have revisions older than $DiffKeepDays -- such revisions will be removed the next time those pages are edited.

!! See also
* Cookbook:ExpireDiff
* Cookbook:LimitDiffsPerPage, Cookbook:InlineDiff
* Cookbook:TrackChanges

>>faq<< [[#faq]]

Q: [[#removepagehistory]] Is there a way to remove page history from page files?
A: 1. Administrators can clean page histories using the Cookbook:ExpireDiff recipe.

A: 2. Administrators with FTP file access can download individual pages from the wiki.d directory, open them in a text editor, manually remove history, and re-upload the files to wiki.d/ directory. Care must be exercised, when manually editing a page file, to preserve the minimum required elements of the page and avoid corrupting its contents. See [[PmWiki/PageFileFormat#creating]].

A: 3. Edit the page. Select ''all'' the contents of the edit text area and cut them to the clipboard. Enter @@delete@@ into the text area and click on the ''save and edit'' button. Select ''all'' the contents of the edit text area and paste the contents of the clipboard over them. Click on the ''save'' button. This will remove all of the page's history up to the final save in which the pasted material is re-added.

Q: [[#restrictpagehistory]] How can I restrict viewing the page history [@(?action=diff)@] to people with edit permission?
A: In the ''local/config.php'' file, set

->[@$HandleAuth['diff'] = 'edit'@];

In case of this restriction is set up on a farm, and you want to allow it on a particular wiki, set in your local/config.php :

->[@$HandleAuth['diff'] = 'read'@];
to:
Cheers pal. I do appreciate the wrtiing.
Lasta ŝanĝo August 31, 2011, at 11:59 AM