We have some text heavy pages. For example Elektrisk brystpumpe - Helsedirektoratet. Here we show visitors what has changed since we last published with “Sist faglig oppdatert”, by manually using italics.
Have anyone made an automatic solution for this? Maybe Enonic could add a “show me what has changed since the last update”as a button for visitors, and it would then highlight changes in a light color, I tried to look for apps in the Enonic Market, but maybe I am missing something.
To achieve this, the implementation would have to fetch all the content versions, find the one that was published first, then find the one that was published last, compare them and highlight the changes in the frontend. This is not a trivial task and we currently don’t have any existing solution for it, but it’s technically doable.
This sounds like something related to your front-end (presentation) rather than the CMS itself. You are basically looking for “diffing” between two versions. Thing typically quickly becomes more complex than one might expect as more and more versions emerge.
Do you present the historical versions publicly today?
@Tsi Yes, we show PDF-versions of older versions of the page. To keep it simple, just showing a comparison to the last version that has a new “sist faglig oppdatert” date, would be good enough.
As I wrote, today we manualy write the changes in italics. Thank you for the reply.
You would then need to fetch and render both current and previously published version and let the diff tool do the job. NB! In XP8 fetching the historically published versions in front-end will be easier, due to improvements in the version history approach.
Also, having AI help making short summary of changes would be interesting ofc.