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?


Indeed... EntryModel->revisionNotes is what you're looking for.

Through PHP, that's:


Through a template, that's:

{{ entry.revisionNotes }}
  • Thanks, Brad. Is there a way to access that through a template tag? I tried variations of {{ entry.getAttribute('revisionNotes') }} without any luck. – Marc Sexton Mar 19 '15 at 3:26
  • {{ entry.revisionNotes }} should do it. – Brad Bell Mar 19 '15 at 3:54
  • @BradBell I have trouble getting this to work: {% 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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.