Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

[AEM Gems Webinar] Accelerating Experience Manager as a Cloud Service development with Rapid Development Environments
SOLVED

Adding version on asset publish

Avatar

Level 3

Hi,

Noticed that version is not created on publishing an Asset and content fragment. It is getting created on publishing a page. How can we add a version during publishing an asset?

1 Accepted Solution

Avatar

Correct answer by
Employee

Versioning in Assets and Pages work separately.

A version is not created on Asset Publish, this is default or OOTB behavior of Assets in AEM.

 

You might need a simple custom solution, where you can listen to the replication events of your assets and add the logic to create Asset version programmatically.

Below link can become handy in creating a version programmatically:

https://developer.adobe.com/experience-manager/reference-materials/6-5/javadoc/com/adobe/granite/ass...

@Ashwin_Raju  

View solution in original post

0 Replies

Avatar

Correct answer by
Employee

Versioning in Assets and Pages work separately.

A version is not created on Asset Publish, this is default or OOTB behavior of Assets in AEM.

 

You might need a simple custom solution, where you can listen to the replication events of your assets and add the logic to create Asset version programmatically.

Below link can become handy in creating a version programmatically:

https://developer.adobe.com/experience-manager/reference-materials/6-5/javadoc/com/adobe/granite/ass...

@Ashwin_Raju