Get Tridion Component Xml trick

When developing you sometimes want to know the actual XML structure of a Tridion component. When having the Tridion Powertools installed on the CMS server, you’re lucky and can use that. When you don’t have it (or aren’t allowed to install it), there is another way.

Via the Tridion Javascript Framework (Anguilla), you can also get the XML. The trick here is to open the component, press F12 for the Console and enter:

$display.getItem().getXml();

Demo:

XmlItem2[1]

Btw, It is also possible to retrieve other component XML by specifing the TCM Uri:

$display.getItem('tcm:123-5997').getXml();

Comments (1) -

Comments are closed