<p>Update: This came up in <a href="https://craftcms.stackexchange.com/questions/9050/how-can-i-display-entry-edit-history-on-the-front-end">another question</a> and I think that I may have found a simple way to do this without the use of a plugin.</p>

<pre><code>{% set versions = craft.entryRevisions.getVersionsByEntryId(entry.id, entry.locale) %}
{{ versions|length }}
</code></pre>

CC BY-SA 3.0
2015-01-03T11:52:17.423Z
Thank you Douglas, but im not very familiar with plugin development yet. Maybe this will turn up in the feature releases of craft. Thanks for your time.
imnotsure
CC BY-SA 3.0
2015-01-04T19:26:43.207Z
@imnotsure have a go at installing the businesslogic plugin. Then just paste the above code into the variables file. It's really very easy. And I think that you'll soon find that every project requires at least some small business logic that is best served with a small plugin. And if you have a questions, we'll be glad to help.
Douglas McDonald
CC BY-SA 3.0
2015-01-10T12:10:08.013Z
Ill give it a try. Thanks for the code example!
imnotsure
CC BY-SA 3.0
2014-12-31T18:34:13.807Z
2015-04-06T17:29:33.547Z
2017-04-13T12:51:00.160Z
Douglas McDonald
<p>For a news site I would like to retrieve the number of times an entry has been updated since postDate. Is that possible without using a plugin? Im using craft pro and have versioning enabled for that section. </p>

<templating>
How can I retrieve number of times an entry has been updated since postDate
# How can I retrieve number of times an entry has been updated since postDate

(Asked by: username_0 on 2014-12-29)

For a news site I would like to retrieve the number of times an entry has been updated since postDate. Is that possible without using a plugin? Im using craft pro and have versioning enabled for that section.

**Tags:** templating


---

## 1 answers

### Answer by username_1 on 2014-12-31. Score: 1

Update: This came up in another question and I think that I may have found a simple way to do this without the use of a plugin.
{% set versions = craft.entryRevisions.getVersionsByEntryId(entry.id, entry.locale) %}
{{ versions|length }}

> **Comments:**
> **username_0**: Thank you Douglas, but im not very familiar with plugin development yet. Maybe this will turn up in the feature releases of craft. Thanks for your time.  
> **username_1**: @username_0 have a go at installing the businesslogic plugin. Then just paste the above code into the variables file. It's really very easy. And I think that you'll soon find that every project requires at least some small business logic that is best served with a small plugin. And if you have a questions, we'll be glad to help.  
> **username_0**: Ill give it a try. Thanks for the code example!  

---

