Tridion Gui Extension: Go To Owning Publication

I was inspired when reading the blogpost from Jaime Santos Alcon about his first bookmarklet Go To Publication. When seeing a blueprinted item in a child publication, it would be great to browse with one click to the same location in the origin publication. Great idea, that can save a lot of clicking and browsing in Tridion.

When trying out, I found out that it doesn’t work in Tridion 2011. Probably due to missing some JavaScript API hooks, which work in Tridion 2013. Later I tested it in 2013, there it works fine.

From my point of view bookmarklets are useful, but have some drawbacks:

  • The are a bit nerdy and not very likely to be broadly understood by Content Managers and other users.
  • With large organizations everybody has to install them in their own browser.

 

Since this is also useful for non-developers, I think it was worth creating a GUI extension out of it. Then we lower the barrier for usage and it’s easily available for everybody.

GoToOwningPublication

I have shared the code of the GUI extension on github: https://github.com/Guzzter/GoToOwningPublication. You can download it there and install the GUI extension by hand or using Robert Curlette’s GUI installer script.

Hope it helps.

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();