Issue
- Is it possible for a reviewer to compare both the Old and New versions when a user makes changes and resubmits for workflow approval in Web Content, Document & Media, and Commerce Products?
Environment
- Liferay DXP 7.4+
- Quarterly Release
Resolution
Web Content:
-
Web Content allows users to track changes through versioning. Whenever an article is created, Liferay maintains versions based on content updates. When a user clicks "Submit for Workflow", the content version updates (e.g., from Version 1.0 to Version 1.1).
-
As a result, the "Diffs" option is available for reviewers, enabling them to compare old and new changes made by the user. This functionality helps maintain transparency in content modifications. (A reference video has been attached for better understanding.)
Document & Media (D&M):
-
Documents & Media (D&M) is designed primarily for managing and storing files such as documents and images. It also includes versioning, but with a different approach:
- If a user re-uploads a file by navigating to Document & Media > "⋮" > Edit, the version increments significantly (e.g., from Version 1.0 to Version 2.0).
- If a user modifies fields like "Title" or "Description" without re-uploading the file, the version updates incrementally (e.g., from Version 1.0 to Version 1.1).
To view previous versions of a document or image:
- Navigate to Documents & Media.
- Open any document/image.
- Click on the info button (ⓘ).
- Click on Versions to see all available versions.
- Click on "⋮" > View to access a previously uploaded file or Revert to restore an older version.
However, in workflow processes, version changes are visible, but detailed content differences are not displayed.
Commerce Product:
- Unlike Web Content and D&M, Liferay Commerce Products do not maintain version history. Since products contain multiple sections such as Details, Options, and SKU, changes made to a product are not tracked in the same way as Web Content or Documents & Media. This means that modifications to a product cannot be compared across different versions.