【发布时间】:2012-09-03 06:33:51
【问题描述】:
我正在使用 SDL Tridion 2011。我创建了一个字段类型为“文本”的组件,并将已发布的组件链接到其中的文本。
在此之后,我将组件插入到页面并发布(我使用了 Link Resolver TBB)。当我在浏览器中查看该页面时,链接没有出现,当我检查代码时,以下是代替链接编写的
<tridion:ComponentLink runat="server" PageURI="tcm:150-12575-64"
ComponentURI="tcm:150-12344" TemplateURI="tcm:0-0-0" AddAnchor="false"
LinkText="component" LinkAttributes=" title="Video link"
target="_blank" " TextOnFail="true"/>
模板类型是复合模板和代码:-
<CompoundTemplate xmlns="http://www.tridion.com/ContentManager/5.3/CompoundTemplate">
<TemplateInvocation>
<Template xlink:href="tcm:150-12576-2048" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:title="Test" />
<TemplateParameters>
<Parameters xmlns="uuid:b81e2790-ded1-4fb2-b09a-4a2975c2938e" />
</TemplateParameters>
</TemplateInvocation>
<TemplateInvocation>
<Template xlink:href="tcm:150-12176-2048" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:title="Default Finish Actions" />
<TemplateParameters>
<Parameters xmlns="uuid:a13c5753-adfc-4e93-912f-ee3d93b6a828" />
</TemplateParameters>
</TemplateInvocation>
</CompoundTemplate>
【问题讨论】:
-
您能否分享来自组件模板的代码段以显示组件详细信息?
-
@HustonLopes:我在上面包含了组件模板代码
-
您确定链接在站点中的其他位置有效吗?使用组件(tcm:150-12344)的页面实际上已发布?
-
@vikaskumar:- 是的,我确定,使用组件(tcm:150-12344)的页面已发布
-
对于其他组件/页面,链接是否有效?
标签: tridion tridion-2011