【发布时间】:2012-05-25 06:21:10
【问题描述】:
我正在开发 SDL Tridion 2011 SP1 中的 Dreamweaver TBB。在 TBB 中,我使用来自不同组件演示的数据。
My Template Building Block looks like this.
主要组件:
<div>@@Component.Schema.Title@@</div>
<!-- TemplateBeginRepeat name="Fields.link" -->
@@RenderComponentPresentation(Field, "tcm:1-8142-32")@@
<!-- TemplateEndRepeat -->
组件模板:tcm:1-8142-32
它的 DWT TBB 看起来像这样。
<!-- TemplateBeginIf cond="Component.Fields.text" -->
<div>@@RenderComponentField("text",0)@@</div>
<!-- TemplateEndIf -->
当我预览组件时,我得到了输出,并且所有组件演示都按预期执行。
输出:
SchemaName
data1
data2
然后我创建了带有页面 TBB 的页面。
<html>
<head></head>
<body>
<!-- TemplateBeginRepeat name="Components" -->
@@RenderComponentPresentation()@@
<!-- TemplateEndRepeat -->
</body>
</html>
输出不如预期。组件模板“tcm:1-8142-32”未执行。
输出:
SchemaName
我也想让 SiteEdit 成为链接组件。
我是否需要在现有模板中添加额外的模板?我正在使用 Tridion 2012 UI。
我知道我们需要添加isQueryBased,属性必须设置为true。
如果是,任何人都可以帮助该命令将其设置为 true 吗?
我不知道问题出在哪里。
谁能帮我修改代码并为嵌入式组件实现 SiteEdit?
【问题讨论】:
-
更新了给出的问题答案。但问题并没有解决。
-
我想对通过组件链接链接到主组件的组件实现站点编辑。
-
我已为您更新了答案,希望对您有所帮助
-
您使用的是哪个版本的 SiteEdit 和 Tridion?没有“Tridion SP1”也没有“SiteEdit 2012”,它们是什么?我假设您将 Tridion 2011 SP1 与 SiteEdit 2009 SP3 一起使用,但请使用正确的版本号更新问题。
-
使用正确版本编辑问题。抱歉输入错误。
标签: tridion tridion-2011