8

@@Component.Title@@DWT テンプレート ビルディング ブロック内で、または組み込みの DWT 関数@@Component.ID@@など、いくつかの「フリー」変数を使用できます。

またはを使用してコンポーネントのスキーマ記述も取得できるとは知りませんでした。@@Component.Description@@@@Description@@

すぐに使用できるサンプルには、 Tridion Cook book の iteration exampleSDL Live ContentDefault Dreamweaver Component Designなどの優れたサンプル セットがあります。

他に許可されている組み込みの DWT 関数と変数を、プログラムまたはその他の方法で見つけるにはどうすればよいでしょうか?

言い換えれば、@@Description@@最初に例を見なければ、DWT で利用できるとは思いもしませんでした (まだ使用していないわけではありません)。

編集(2013 年 6 月 8 日): SDL Live Content に関する追加情報を見つけました (ログインが必要です)。もちろん、ドキュメントで説明されているように、利用可能なPackage 変数を使用できます。

4

2 に答える 2

4

少し調べてみると、tridion.contenmanager.configファイルにアクセスすると、Dreamweaverメディエータータイプを参照するノードが見つかります。

<mediator matchMIMEType="text/x-tcm-dreamweaver" type="Tridion.ContentManager.Templating.Dreamweaver.DreamweaverMediator" />

この名前空間は内部にありますTridion.ContentManager.Templating.dll

逆コンパイルは、内部にあるものを見つけて何かを学ぶための最良の方法です。.Netコードなので問題ありませんので、無料の優れたツールがたくさんあります。最近JustDecompileを使用しています

TridionObjectSourceコードについてはあまり深く掘り下げませんでしたが、次のような予約語の定数を含むクラスがあることがわかります。

  • ReservedNameTitle
  • ReservedNameDescription

この定数がコードのどこで使用されているかを検索すると、それらが何をするのか、DreamweaverMediatorが内部でどのように機能するのかをよりよく理解するのに役立ちます。

面白い学習演習のようです

于 2013-01-10T11:45:45.027 に答える
2

I take it that you've searched the documentation for the answer and come up empty. I suggest that you go to the relevant part of the LiveContent documentation and add a comment. This will reach the documentation team directly, and I'm sure they'll be very interested to hear of a feature that isn't properly covered. With a bit of luck they'll update it, and you'll have done us all a favour.

I have some sympathy for the "help yourself" approach too, but if you find a feature by your own analysis of the software, and it gets removed in a later release, you won't have a leg to stand on to complain about this. So help Tridion to get the feature documented, and then it's there to use with confidence.

于 2013-01-12T18:51:20.303 に答える