2012-02-22 11 views
5

Tridion GUI拡張設定はどのように名前をJSファイルにマッピングしますか?たとえば、私はJaimeのHelloWorld postをサンプルファイルとともに使用しています。最も重要な部分は、CommandSetセクションであると感じます。Tridion GUI拡張コマンドセットはjsメソッドにどのようにマップされますか?

<cfg:commandset id="HelloWorldCM.Interface"> 
    <cfg:command name="HelloWorldCM" implementation="Extensions.HW"/> 
    <cfg:dependencies> 
    <cfg:dependency>HelloWorldCM.Commandset</cfg:dependency> 
    </cfg:dependencies> 
</cfg:commandset> 

次の属性と、その拡張子の基礎となる.jsファイルへのマッピング方法を理解できますか?

  • 実装
  • CFG:依存

私は設定とJSファイルの両方にこれらの事を変更しようとしたが、それらがどのようにマッピングされていることは謎ですしています。

答えて

10

あなたが言及している3つの属性は、実際にはすべての拡張子をまとめたポインタです。あなたはジェイミーのサンプルでアップ高い見れば、これが表示されます。

<ext:contextmenus> 
    <ext:add> 
    <ext:extension name="HelloWorldCMExtension" assignid="" insertbefore="cm_refresh"> 
     <ext:menudeclaration> 
     <cmenu:ContextMenuItem id="ext_HelloWorldCM" name="Hello World!" command="HelloWorldCM"/> 
     </ext:menudeclaration>        
     <ext:dependencies> 
     <cfg:dependency>HelloWorldCM.Example</cfg:dependency> 
     </ext:dependencies>    
     <ext:apply> 
     <ext:view name="DashboardView"/> 
     </ext:apply> 
    </ext:extension> 
    </ext:add>   
</ext:contextmenus> 

このXMLは、CMEのコンテキストメニューにボタンを追加します。

command="HelloWorldCM"が一致するコマンドを指すname実際に設定のコマンドにcommandset

implementation="Extensions.HW"内の属性は、コンフィグの先頭に

cfg:dependency点ファイル添付HellowWorldCM.jsで名前空間を参照しますどのCSSとJSを含めるべきかを知るために、<cfg:group name="HelloWorldCM.Commandset" merger="Tridion.Web.UI.Core.Configuration.Resources.CommandGroupProcessor" merge="always">ノードのファイル

関連する問題