I am developing a Alchemy Plugin which extends “Localize” command.
For that, I am creating the command extension as below:
public class MyCommandExtension : CommandExtension
{
public MyCommandExtension()
{
Name = "Localize";
ExtendingCommand = "MyLocalizeCommand";
Dependencies.Add<MyResourceGroup>();
}
}
In the CommandExtension
, I am adding the dependency for MyResourceGroup
, which contains the JS files implementing MyLocalizeCommand
command.
Now when I deploy the plugin, Tridion doesn’t fire the command because Alchemy doesn’t update “AlchemyEditor.config” as expected and do not add MyResourceGroup
dependency inside <ext:commandextensions>
node as below:
<ext:commandextensions>
<ext:commands>
<!--Plugin: MyPlugIn-->
<ext:command name="Localize" extendingcommand="LocalizeComment" />
</ext:commands>
<ext:dependencies>
<!--Plugin: MyPlugIn -->
<!--Missing dependency -->
</ext:dependencies>
</ext:commandextensions>
When I add the dependency (as below) manually by replacing comment <!--Missing dependency -->
, it starts working fine.
<cfg:dependency> MyResourceGroup.Resources.MyCommands</cfg:dependency>
I guess, I am missing something in the code, Can someone point that out?
Thanks