<p>Indeed... <a href="https://github.com/pixelandtonic/Craft-Release/blob/master/app/models/EntryModel.php#L259" rel="nofollow">EntryModel->revisionNotes</a> is what you're looking for.</p>

<p>Through PHP, that's:</p>

<pre><code>$entry-&gt;revisionNotes
</code></pre>

<p>Through a template, that's:</p>

<pre><code>{{ entry.revisionNotes }}
</code></pre>

CC BY-SA 3.0
2015-03-19T03:26:34.553Z
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
CC BY-SA 3.0
2015-03-19T03:54:44.657Z
`{{ entry.revisionNotes }}` should do it.
Brad Bell
CC BY-SA 3.0
2017-02-17T17:35:18.620Z
@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
CC BY-SA 4.0
2021-09-24T21:53:16.170Z
Hi, @BradBell. I know this is five years old and things have most likely changed, but when using your template code, I get this error: Getting write-only property: craft\elements\Entry::revisionNotes. Are revision notes no longer viewable in templates?
John Johnson
CC BY-SA 3.0
2015-03-19T02:52:42.190Z
2015-03-19T04:03:09.330Z
2015-03-19T04:03:09.330Z
Brad Bell
<p>At least for Craft 3.x, <code>revisionNotes</code> element property is protected and PHPDoc flagged as write-only: <code>@property-write</code>. But you can access the <code>$entry-&gt;revisionNotes</code> using a <a href="https://www.php.net/manual/en/closure.call" rel="nofollow noreferrer">Closure::call</a> or in combination with an <a href="https://www.php.net/manual/en/functions.arrow.php" rel="nofollow noreferrer">arrow function</a></p>
<p>Closure::call PHP 7.0+</p>
<pre><code>echo (function() {return $this-&gt;revisionNotes;})-&gt;call($entry);
</code></pre>
<p>Arrow Function PHP 7.4+</p>
<pre><code>echo (fn() =&gt; $this-&gt;revisionNotes)-&gt;call($entry);
</code></pre>

CC BY-SA 4.0
2022-05-23T18:12:42.560Z
2022-05-23T18:18:08.730Z
2022-05-23T18:18:08.730Z
surfalot
<p>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.</p>

<p>Is there an entry model property for this?</p>

<entrymodel>
Displaying the optional note from a versioned entry
# Displaying the optional note from a versioned entry

(Asked by: username_0 on 2015-03-19)

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?

**Tags:** entrymodel


---

## 2 answers

### Answer by username_1 on 2015-03-19. Score: 5

Indeed... EntryModel->revisionNotes is what you're looking for.
Through PHP, that's:
$entry->revisionNotes

Through a template, that's:
{{ entry.revisionNotes }}

> **Comments:**
> **username_0**: Thanks, Brad. Is there a way to access that through a template tag? I tried variations of {{ entry.getAttribute('revisionNotes') }} without any luck.  
> **username_1**: `{{ entry.revisionNotes }}` should do it.  
> **username_2**: @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.  
> **username_3**: Hi, @BradBell. I know this is five years old and things have most likely changed, but when using your template code, I get this error: Getting write-only property: craft\elements\Entry::revisionNotes. Are revision notes no longer viewable in templates?  

---

### Answer by username_4 on 2022-05-23. Score: 1

At least for Craft 3.x, revisionNotes element property is protected and PHPDoc flagged as write-only: @property-write. But you can access the $entry->revisionNotes using a Closure::call or in combination with an arrow function
Closure::call PHP 7.0+
echo (function() {return $this->revisionNotes;})->call($entry);

Arrow Function PHP 7.4+
echo (fn() => $this->revisionNotes)->call($entry);


---

