6

In the documentation section Implementing and configuring a command

Step 6 says:

If your JavaScript code references Content Manager Explorer functionality, then under the cfg:fileset, create a cfg:dependencies element and fill it with two cfg:dependency elements set to the following values:

Tridion.Web.UI.CME
Tridion.Web.UI.CME.Commands

Further down in the Results section, the diagram shows the following resources:

Tridion.Web.UI.Editors.CME
Tridion.Web.UI.Editors.CME.Commands

In the Power tools configuration there is consistent use of

Tridion.Web.UI.Editors.CME
Tridion.Web.UI.Editors.CME.commands

In the absense of any better explanation, I'm assuming that these references are to JavaScript code in the GUI, although there don't seem to be any obvious files containing this code, and the Anguilla documentation doesn't appear to mention them.

So - what are the correct dependencies to use? Must they be case-sensitive? What do they refer to?

3

Step 6 appears to be missing the "Editors" part. Do us all a favor and add a comment to that doc page, so it will be fixed :)

The correct names are Tridion.Web.UI.Editors.CME and Tridion.Web.UI.Editors.CME.Commands -- and although there may be JavaScript namespaces corresponding to this, it's actually a reference to the groups defined in the Editor.config of the CME.

The idea is that you define "dependency groups" as a list of files to include and then anyone can simply reference the name of that group whenever they depend on your stuff. The dependent code doesn't need to know the exact files needed and doesn't have to be updated if files are added/removed.

Hopefully that made sense. It's actually a simple enough mechanism, but writing it out makes it seem more complicated than it really is :)

| improve this answer | |
  • Yes - it makes sense, thanks. That was just the demystification I needed. – Dominic Cronin Jul 11 '14 at 18:48
  • Great explanation, Peter. Makes perfect sense. I'm confused as to why this isn't in the documentation (or more prominent if it is) though! – Jonathan Williams May 31 '17 at 7:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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