Record who published content
For administrators and project managers. "Who published this?" is the question the audit guide says is asked most,
and the shipped default leaves it off: settings/audit.ini [AuditEventSettings] Enabled[] records moves, hides,
removals, states and sections, but not creating and publishing (Audit guide, 6.2 Busy site).
Public bodies usually want it on.
Contents
Before you start
- More records: one per publish. On a busy site the guide also suggests larger audit buffers.
- The versions page already shows each version's creator and dates; the audit adds a tamper-evident, searchable record across all content.
Steps
In
settings/override/audit.ini.append.php(no emptyEnabled[]line first, or the shipped list is cleared):[AuditEventSettings] Enabled[]=content.object.create Enabled[]=content.object.publishClear the INI cache:
php bin/php/ezcache.php --clear-tag=ini --allow-root-user; reload PHP-FPM and restart Velocity (./console exp:velocity deploy --allow-root-user).
Check that it worked
- Publish a test article in a test folder.
./console exp:audit tail --channel=content --name='content.object.*' --lines=5 --allow-root-usershows the publish with the user.- On Setup > Audit (
/audit/settings) the event list shows the new entries and the file they come from.
The setting write itself is recorded as system.setting.write when made with exp:ini.
Related pages
- The audit trail for public bodies
- Versions and content history
- Audit guide, 8 Event reference
- Free documentation: this page is free to copy, translate and improve under the GNU FDL 1.3.
Become an Exponential Partner
Partners share their information, provide funding, contribute back and develop the products with us, and that is how Exponential grows. A partner website and dashboard are planned for mid-2027: please become a partner today to speed up our growth rate and land new features faster.