我工作在Dreamweaver模板积木和页面实现SiteEdit。
我使用支持SDL Tridion 2011 SP1和网站编辑2012和默认梦韦弗模板。
我的架构有型的多值字段“组件链接”。 我的主要成分XML看起来是这样的。
<Content xmlns="UUID">
<link xlink:type="simple" xlink:href="tcm:202-8121"
xmlns:xlink="http://www.w3.org/1999/xlink"></link>
<link xlink:type="simple" xlink:href="tcm:202-8122"
xmlns:xlink="http://www.w3.org/1999/xlink"></link>
</Content>
链接组件XML看起来是这样的。
<Content xmlns="Some other UUID">
<text>Hi all</text>
</Content>
我的目标是获得链接的组件的架构的名称并启用内嵌编辑的链接部件的领域了。 我创建一个单独的组件模板用于与所述URI链接部件的架构tcm:202-8142-32
。
我已经写了DWT TBB像这样主要成分。
<!-- TemplateBeginRepeat name="Fields.link" -->
<div>
(FieldPath=@@FieldPath@@, TemplateRepeatIndex=@@TemplateRepeatIndex@@)
</div>
<!-- Not able to get the schema name of the linked component -->
@@RenderComponentPresentation(link, "tcm:202-8142-32")@@
<!-- TemplateEndRepeat -->
我是通过组件链接字段“链接”无法循环。
然后,我改变了只允许一个单一的组件链接的模式。 当TBB写有:东西很好地工作:
@@RenderComponentPresentation(link, "tcm:202-8142-32")@@
我知道问题出在穿过多组分链接循环。
请建议穿过多组分环节如何循环,并得到各连接组件的架构名称。