Warning: You are browsing the documentation from version 4 to 10 of Pimcore. Please visit https://pimcore.com/docs/platform/ for the latest versions of Pimcore.
Version: Edit on GitHub

Notes & Events


Notes & Events are primarily used to log changes or events on elements independently from the versioning. This includes changes made by marketers, editors, automated importers / synchronisations, .... Simply everything that has nothing to do with the data itself but is important to know.

Use cases

  • An importer (CLI-script) that adds information to objects which changes were made
  • Marketers / SEOs adding information which changes were made on documents like "optimized for keyword xyz ..."

There are really nearly endless possibilities what to do with Notes & Events.

Create Notes & Events

Using API

use Pimcore\Model;

$object = Model\DataObject::getById(4);

$note = new Model\Element\Note();
$note->setTitle("changed availabilities to xyz");

// you can add as much additional data to notes & events as you want
$note->addData("myText", "text", "Some Text");
$note->addData("myObject", "object", Model\DataObject::getById(7));
$note->addData("myDocument", "document", Model\Document::getById(18));
$note->addData("myAsset", "asset", Model\Asset::getById(20));


And this is how the entry looks like:

Notes & events - the grid preview

Add Events in Pimcore backend UI

You could also add the note directly in the edit view of objects, documents and assets.

Notes & events - add a note manually

Specify Custom Types for Notes and Events

Via Pimcore configuration, the selectable types for notes and events can be specified per content type (asset, document, data object), see sample config below:

# config/config.yaml or any other Symfony config file

                - ""
                - "content"
                - "seo"
                - "some other type"
                - ""
                - "content"
                - "licese renewal"
                - "some other type"
                - ""
                - "manual data change"
                - "some other type"