We could see when we re-upload an existing asset in DAM, A Name Conflict dialog opens to save the asset as Version using "Create Version" button. In Timeline, it shows default Label/Comment as "New Version 1.x".
I need options as Textfield to take user custom Comment/Label during "Create Version" and display this custom comment entered by user in Timeline view instead of system generated comment "New Version 1.x"
I am looking for the solution of above scenario, but didn't find any helpful solution yet.
Please provide the valuable solution.
Regards, Mayank
Views
Replies
Total Likes
hi @mayank-saxena1987 ,
1. when you re-upload asset it will ask to create version. just click. on it
2. then select that asset and click timeline.
3. select the version to which you want to add custom comment.
Hi @MayurSatav This does not solve my need. I tried the above steps, It gives two option. Revert to this Version and Preview Version. After selecting asset from timeline, and adding comment and label and choosing Revert to this version-> creates a new version instead of adding the comment for the version created during re-upload of asset. This is not my need. I want to add custom comment for the same version created during re-upload of asset.
I tried the below solution for this to customize the same. We can achieve this by below steps:-
1. overriding /apps/dam/gui/coral/components/admin/timeline/events/version/version.jsp and /apps/dam/gui/coral/components/commons/fileupload/clientlibs/fileupload/js/fileupload.js files from /libs to /apps.
2. In fileupload.js file add custom coral dialog within existing code createVersionButton.on("click", function(){...}) and call the servlet to save the custom comment within /<asset-path>/jcr:content.
3. version.jsp could be used to read and display the same saved custom comment in timeline. since the version would also save the custom comment existing code can be used to tread the same comment.
Sample: String comment = nd.getPropert("customcomment").getString();
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies