JJSEditRev

Summary: Keeps track of page text changes in page attribute "jjsEditRev"
Version: 1.0
Prerequisites:
Status:
Maintainer: jjs
Categories:
Discussion: JJSEditRev-Talk?

Questions answered by this recipe

Saving a page will always update the PageRev attribute. How can I have a revision count that is only updated when the page text has changed?

This section is optional; use it to indicate the types of questions (if any) this recipe is intended to answer.

Description

JJSPageRev inserts a hook function in $EditFunctions that checks if the text of a page has changed before it is saved. If so, it updates the value of a page attribute named "jjsEditRev".

Installation

Download Attach:jjseditrev1_0.php Δ, save it in your cookbook directory.

add to local/config.php:

include_once($FarmD . '/cookbook/jjseditref1_0.php');

Notes

This is not of much value per se. But combined with JJSApprovePage and JjsCMS it allows for fine grained publishing control.

Release Notes

If the recipe has multiple releases, then release notes can be placed here. Note that it's often easier for people to work with "release dates" instead of "version numbers".

  • 2006-03-18 Initial release

See Also

Contributors

Comments

See discussion at JJSEditRev-Talk?

User notes? : If you use, used or reviewed this recipe, you can add your name. These statistics appear in the Cookbook listings and will help newcomers browsing through the wiki.