8

I was trying the answers to this question: How to mass delete Tridion MessageCenter warnings?

I noticed in SDL Tridion 2013 SP1, in the Browser console it seems the slide out menu is available using SDL, but I can't seem to access the Tridion object directly.

How should we access the Tridion object when debugging from the console?

I understand this isn't Anguilla, per se, but an extension across SDL products.

In the GUI Extension (Anguilla) documentation, I see a references to SDL in contents.html:

  • SDL
    • SDL.Client
      • Client.Application

But I'm not sure how/if this relates to the Tridion object.

Edit: I've followed John Winter's example from this question: How to Add SDL Media Manager to the Slide-out Navigation?. So adding new items and extending the slide out navigation is actually clear (I removed that part from this question).

1 Answer 1

7

No takers, so I'm posting what my colleagues explained, as a community post (no points, but feel free to update and add details).

With SDL Tridion 2013 SP1, you will find the Browser console different because of extra frames from the slide out navigation (thanks PeterK). So these won't work directly:

  • $messages
  • Tridion.*

UIBeardCore pointed out the solution is something like:

window.top.frames[0].Tridion.getApplicationWindow().Tridion.MessageCenter.getMessages().forEach(function(message){message.doArchive();})

This worked to clear messages on an SDL Tridion 2013 SP1 setup.

2
  • +1 for sharing all the same Alvin thanks. The question begs then - is there an extension point to be added or would be be expected to use this DOM 'workaround' and change when the page DOM updates in Hotfixes/Service Packs/Upgrades etc. Aug 6, 2014 at 12:06
  • Hmm, not sure, though this would only affect poking around the browser. The slide out is extendable with .ascx files or some XML configuration to add links to iframed pages (quite cool) and within Tridion, clients (CME or XPM), extensions just work. Aug 6, 2014 at 15:45

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.