kirby-revisions icon indicating copy to clipboard operation
kirby-revisions copied to clipboard

create revisions for existing pages

Open bnomei opened this issue 7 years ago • 2 comments

i want to use revisions plugin for an existing website with literally thousands of pages. but first change creates revision current, losing first change for existing pages. any ideas how to trigger a revision for all pages that do not have one yet? like create a widget, loop throught all pages and trigger panel.page.update (untested)? how to test by code if page does have a revision?

bnomei avatar Sep 04 '16 08:09 bnomei

To not make it hang with thousands of pages it would probably need an ajax loop. It's more work than just a PHP loop. I will probably not add it soon, but it's still a good idea. A widget sounds like the right approach.

jenstornell avatar Sep 05 '16 05:09 jenstornell

ic. thx. will report back if i get something working. ticket closed for me.

bnomei avatar Sep 05 '16 11:09 bnomei