How to compare any two elements or components or pages in Tridion

We are currently comparing a function that compares between versions of a given element.

Now, how can I compare any two given elements (either two components that use a similar scheme, or pages) when selecting?

I tried to provide tcmid source and destination, for example

"http://sdltridion/WebUI/Editors/CME/Views/Popups/Compare/CompareDialog.aspx#root=<tcm-source>&id1=<tcm-destination>&id2=&popup=UID_393" , but he looked only at the root ie tcm: 56-1520 and provided a comparison between the latest version and the immediate previous version of tcm: 56-1520 item.

How can I compare between two different components implemented using a similar circuit?

+7
source share
3 answers

SDL Tridion does not offer you to compare different elements, there is only a comparison between versions of the same element.

If you need to make a comparison between different items (it may be interesting to know what a use case is), then you need to create something yourself. Most importantly, you start by determining what exactly you want to compare, because there will be many differences that may not interest you (different TCM URIs, different location, different file name / file name, etc.). Thus, it is not possible to conduct direct XML comparisons.

+7
source

According to Bart, the Tridion comparison tool will only work with different versions of the same element, and I agree with him that the reasons that prompt you to compare different elements can be a little puzzling.

However, there are tools like this one from Microsoft that you could use for your own purposes.

N

+5
source

Another way is to copy the XML source of both components and use a third-party tool like winmerge to find the differences.

+1
source

All Articles