コミュニティアチーブメントバーを展開する。

Submissions are now open for the 2026 Adobe Experience Maker Awards.

Mark Solution

この会話は、活動がないためロックされています。新しい投稿を作成してください。

解決済み

Version of pages - and the visual difference page function

Avatar

以前のコミュニティメンバー

Hi,

  In the version tab in the sidekick, when we do a diff between versions of pages, none of our custom components show any differences.

Do custom components need to do something explicit to fit in with this diff functionality?

 

Thanks

1 受け入れられたソリューション

Avatar

正解者
Level 8

Generally yes you need to make an effort in your custom components to generate the diff information. How hard this is to do depends on which version of the product. 

In 5.6 the out of the box components use the cq:text tag which handles the the diff functionality. If you aren't using the cq:text tag then you have to handle the diff logic yourself. 

In 5.6 for images the Image bean (com.day.cq.wcm.foundation.Image) will handle this as well (it adds a query string parameter like ?cq_diffTo=1.0). 

In older versions of the project supporting diff is more complex - you write a lot of more scriptlet code or have to write your own tag library. There is a service that provides help to components for this - https://dev.day.com/docs/en/cq/current/javadoc/index.html?com/day/cq/commons/DiffService.html

元の投稿で解決策を見る

2 返信

Avatar

Level 2

Diff is something you have to manually do on a component basis. Take a look at the foundation title - it can be quite involved...

Avatar

正解者
Level 8

Generally yes you need to make an effort in your custom components to generate the diff information. How hard this is to do depends on which version of the product. 

In 5.6 the out of the box components use the cq:text tag which handles the the diff functionality. If you aren't using the cq:text tag then you have to handle the diff logic yourself. 

In 5.6 for images the Image bean (com.day.cq.wcm.foundation.Image) will handle this as well (it adds a query string parameter like ?cq_diffTo=1.0). 

In older versions of the project supporting diff is more complex - you write a lot of more scriptlet code or have to write your own tag library. There is a service that provides help to components for this - https://dev.day.com/docs/en/cq/current/javadoc/index.html?com/day/cq/commons/DiffService.html