How to get itemxml of selected item in Tridion

I would like to get and display the itemxml of the selected item from the CME Tridion.

I managed to get Itemxml from my VM server when I give the tcm identifier in the browser.

However, I would like to get the same information from the Tridion GUI extension.

I can get the selected tcm id element. Is there a way to get itemxml using coreservice ?

or is there any other way to get this?

+5
source share
4 answers
+5

PowerTools, ItemXML ( ) SDL Tridion

http://code.google.com/p/tridion-2011-power-tools/wiki/ItemXML

XML JavaScript :

ItemXmlTab.ItemXmlTab.prototype.updateView = function ItemXmlTab$updateView()
{
    if (this.isSelected()) 
    {
        var xslPath = $ptUtils.expandPath("/PowerTools/Client/ItemXml/ItemXmlTab.xslt", true);

        $xml.loadXsltProcessor(xslPath, function (value) 
        {
            var xmlSource = $display.getItem().getXml();

            // Filter out all spacing characters
            xmlSource = xmlSource.replace(/\t|\n|\r/g, "");

            var html = $xml.xsltTransform(value, $xml.getNewXmlDocument(xmlSource), null);

            $dom.setOuterHTML($("#itemXml"), html);
        });        
    }
};

http://code.google.com/p/tridion-2011-power-tools/source/browse/#svn%2Ftrunk%2FPowerTools.Editor%2FPowerTools%2FClient%2FItemXml%253Fstate%253Dclosed

+4

XML- CoreService, Trimion R6 (2011) Xml, .

.

, , "GetItemXml.aspx" Tcm, Uri , Xml.

+2

, Yoav Niran (Url user978511), .

if you still encounter any problem and are in a hurry to get it to work, follow the steps below -

1- Download extension .

2- Apply steps 7 and 8 of this article to configure this extension.

+1
source

All Articles