この会話は、活動がないためロックされています。新しい投稿を作成してください。
この会話は、活動がないためロックされています。新しい投稿を作成してください。
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
解決済! 解決策の投稿を見る。
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.
表示
返信
いいね!の合計
Diff is something you have to manually do on a component basis. Take a look at the foundation title - it can be quite involved...
表示
返信
いいね!の合計
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.
表示
返信
いいね!の合計