2

To extend the revisions limit I currently edit the "vendor/craftcms/cms/src/templates/_includes/revisionmenu.html" file. But I have to do it after each Craft CMS update.

Is there a better way to do it, so the craft updates won't affect it?

Thank you.

1

There is a maxRevisions config option you might find useful:

'maxRevisions' => 10,
| improve this answer | |
  • yes, I've tried changing that option however it doesn't affect the revision menu UI in the CMS. It always shows only 10 revisions there. IT seems like the only way to show more than 10 revisions in the CMS is to change "limit" value in the file I mentioned above. The code looks like this there: {% set revisions = element.find().revisionOf(element.sourceId).siteId(element.siteId).anyStatus().offset(1).limit(10).all() %} – Tim Jan 6 at 20:10

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.