david-szabo97 / grav-plugin-admin-addon-revisions

An extension for Grav Admin plugin which adds revisions for pages.
MIT License
11 stars 8 forks source link

Add option to neglect media / certain pages #12

Closed martynvandijke closed 6 years ago

martynvandijke commented 6 years ago

Hi, I store albums using grav as separate pages with media. Using this plugin every photo gets copied into a .rev folder, since I have a large album size of +- 2gb this is not wanted. Would you therefore add the option to neglect media or certain pages ?

david-szabo97 commented 6 years ago

Hi there! Sure, I will add an option for that next week.

On Sat, 21 Oct 2017, 20:00 Martyn van Dijke, notifications@github.com wrote:

Hi, I store albums using grav as separate pages with media. Using this plugin every photo gets copied into a .rev folder, since I have a large album size of +- 2gb this is not wanted. Would you therefore add the option to neglect media or certain pages ?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/david-szabo97/grav-plugin-admin-addon-revisions/issues/12, or mute the thread https://github.com/notifications/unsubscribe-auth/ACJs6FEdEC4h6fGLzCswt3Jv6qjaJJmQks5sujFQgaJpZM4QBp7Z .

david-szabo97 commented 6 years ago

Pushed v1.3.0 Now you can add ignore patterns in the plugin configuration.

Here is an example how you can ignore all png and jpg files in the 'test' page.

/pages\/test\/(.*).png$/
/pages\/test\/(.*).jpg$/