MarkupActivityLog by renobird

Adds an Activity Log tab to pages. Configurable to specific templates.

Markup Activity Log

Page level activity log for ProcessWire CMS


Markup Activity Log is a set of ProcessWire modules that keeps a log of changes made to all core fields for an individual page.

See the Forum Post for details.

Installation


In ProcessWire 2.4+ go to your Modules menu in the admin, click the "New" tab and type or paste in "MarkupActivityLog" and click "Install".

If you are unable to install using that method, you can also just install the old way by copying the files for this module into /site/modules/MarkupActivityLog/ and clicking "check for new modules" from your Modules screen.

How to use


Admin side

  1. Install the module
  2. Check the config settings, and specify templates that get the Activity Log tab.
  3. Make some changes to a page.
  4. Check the log.

API

In a template file where you wish to display the activity log.

$activity = $modules->get("MarkupActivityLog");
$page = $pages->get("id=12345"); // this page's template must be specified in the module config list or else it throws an error.
echo $activity->render($page, 10); // the 2nd argument is the number is an optional results limit.

To log changes made to a page via the API.

$activity = $modules->get("MarkupActivityLog");
$activity->logChanges($page);

$page->save();

Note: The first version of the module generates markup when used on the API side. (see: MarkupActivityLog.inc); I plan to add the ability to specify a markup file for the next release.

Install and use modules at your own risk. Always have a site and database backup before installing new modules.

Latest news

  • ProcessWire Weekly #515
    In the 515th issue of ProcessWire Weekly we’ll check out the latest core updates, new modules, and more. Read on!
    Weekly.pw / 23 March 2024
  • Invoices Site Profile
    The new invoices site profile is a free invoicing application developed in ProcessWire. It enables you to create invoices, record payments to them, email invoices to clients, print invoices, and more. This post covers all the details.
    Blog / 15 March 2024
  • Subscribe to weekly ProcessWire news

“Indeed, if ProcessWire can be considered as a CMS in its own right, it also offers all the advantages of a CMF (Content Management Framework). Unlike other solutions, the programmer is not forced to follow the proposed model and can integrate his/her ways of doing things.” —Guy Verville, Spiria Digital Inc.