开发者

Sitecore comparing two items

Lets say I have two items:

  • Cat

  • Dog

Is there anyway of comparing them easily to see difference between the two? I know I can get PublishedItemComparer which compares -Cat to -CatDB(being the published item in the database). Also Sitecore version ribbon allows you to compare revisions of the content item in sitecore.

I guess the released comparison tools just arn't enough for my needs. Let me know if开发者_开发技巧 there is a solution currently out there if not I may have to look into creating one :D.


You can take advantage of the item serialization here.

Here's what you should do:

  • open Content Editor and activate the Developer tab in the ribbon. For this, right click the ribbon and choose 'Developer' - it should be the only inactive tab there
  • select an item (one of those two you'd like to compare) in content tree, switch to the Developer tab and press 'Serialize item' button. This operation will create a TXT representation of this item under /data/serialization by default
  • select the other item and repeat the previous step

Now, when you have TXT representation of each items, you can use usual comparing tools, like WinMerge, to do the actual comparison.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜