Created
June 1, 2015 09:59
-
-
Save gregwiechec/7cef25c6364860e4b3c9 to your computer and use it in GitHub Desktop.
Related contents tool
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
define([ | |
"dojo", | |
"dojo/_base/declare", | |
"epi/_Module", | |
"epi/dependency", | |
"epi/routes", | |
"commands/samples/relatedPagesCommandProvider" | |
], function( | |
dojo, | |
declare, | |
_Module, | |
dependency, | |
routes, | |
RelatedPagesCommandProvider | |
) { | |
return declare([_Module], { | |
initialize: function() { | |
this.inherited(arguments); | |
var relatedPagesCommandProvider = new RelatedPagesCommandProvider(); | |
var commandregistry = dependency.resolve("epi.globalcommandregistry"); | |
var area = "epi.cms.publishmenu"; | |
commandregistry.registerProvider(area, relatedPagesCommandProvider); | |
} | |
}); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<module> | |
<clientResources> | |
<add dependency="epi-cms.widgets.base" path="Scripts/samples/commandsInitializer.js" resourceType="Script" /> | |
</clientResources> | |
<clientModule initializer="commands.samples.commandsInitializer"> | |
<moduleDependencies> | |
<add dependency="CMS" type="RunAfter" /> | |
</moduleDependencies> | |
</clientModule> | |
<dojo> | |
<paths> | |
<add name="commands" path="Scripts" /> | |
</paths> | |
</dojo> | |
</module> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment