Version 0.3 released
- Added namespaces
- Minified css is now generated a swith Gulp and Scss.
- Option added to prevent deletion of revision when a page is deleted.
- Field assets are set as files, not inline.
Version 0.3 released
It only fixes one thing, the folder permissions. If you did not get it to work with previous versions, itâs a bigger chance that it will work now.
If it works for you with 0.3 you donât need to upgrade.
0755
.plugin.revisions.permission
is added which mean you can change the permissions if you want.i am trying to achieve something similar to revisions right now, but maybe it makes more sense if i suggest the feature to you first, than doing it myself. since i seem to be less experienced with kirby than you anyway.
writing complete copy of page fields only does half the work i need. i want to know only what changed and when.
maybe you could add a plugin setting like âdiff.outputâ = true. then there is an additional file where the last revision is read in as yaml and checked against current. only the changed field is written to the diff file.
one could even add a âdiff.onlyâ = true setting where only last revision is stored as full yaml file. anything else would be diff files. previous revisions are removed automatically.
@bnomei Sorry for late reply. Must have missed this one. Itâs harder to extract the diff save that and then merge it. I will still copy the whole text file. They are still tiny.
In general I have many great features and improvement ideas but it will require to change the revisions to be saved in the content folder instead of the revisions folder. A huge impact on current users.
My question is. Would it make sense to keep it as an update or create a new plugin? What do you think?
you could do both, right? ârevisions-2 the new pluginâ.
New github repository or the same one? Maybe a new one and link to it from the old one, then depricate the old one.
I would say stick with the same repo
and create a branch for the legacy version.
Great idea! I will probably do that. Thanks!
Wonderful pluginâŠ! Anyway it will be very helpful to have a button to restore an old versionâŠ
Yes thatâs one of the new ideas.
I canât give any release date. I quote @lukasbestle on this one:
Itâs done when itâs done
But I hope itâs done sooner than later.
A teaser to new Revisions 2 plugin.
This is inside a revision:
If you have feedback already, feel free to write.
Beautiful! Is this able to detect revisions in files as well? Meaning a deleted image, or trickier, a replaced image (same filename) ?
I thought about it for a few seconds but no. It will never be.
Revisions plugin including everything (which I will not build):
With risk for timeouts, risk for bugs, takes up space and increased development time, this it not something I will develop.
Revisions plugin for content texts:
So if change texts and values and then want to rollback these changes, the Revisions 2 plugin might be for you.
If you want a complete backup if the page other solutions might suit you better.
Thanks a lot for your detailed answer!
I personally donât want a complete backup solution, and was merely asking this out of curiosity
What about using Git for this plugin? You could use the Auto Git plugin internally and create a UI to restore one of the older versions from Git.
Iâve not tested autogit because I does not have access to private repos (costs money, at least at Github).
A few questions about it:
If you think of something else you need to explain more.
You can have free private repos on BitBucket, or install GitLab on your own server. On the other hand, you donât have to use a remote repo to use Git on the server.
Only downside, git needs to be installed on the server, but even most cheap hosting providers do have git installed.
To answer your questions:
Ahh, I see. That would probably be too much overhead for me. Also Iâm not very good at git in general. I have a kind of a minefield version of the plugin on localhost already and I will work on that.
But I hope someone else would take that approach. Itâs always interesting to see alternatives.
Thanks for the idea anyway!