I want to use the note that is optional when saving a versioned entry as part of an activity feed -- like a git commit message.
Is there an entry model property for this?
Craft CMS Stack Exchange is a question and answer site for administrators, end users, developers and designers for Craft CMS. It only takes a minute to sign up.
Sign up to join this communityI want to use the note that is optional when saving a versioned entry as part of an activity feed -- like a git commit message.
Is there an entry model property for this?
Indeed... EntryModel->revisionNotes is what you're looking for.
Through PHP, that's:
$entry->revisionNotes
Through a template, that's:
{{ entry.revisionNotes }}
{% set myEntry = craft.entries.section('myEntries').first %}
{{ myEntry.revisionNotes }}
Even though the entry in question has a revision note, nothing comes up.
– medoingthings
Feb 17 '17 at 17:35