简体   繁体   English

需要帮助来使用模板构建块创建组件模板

[英]Need help to create component template using Template building block

I need help with following scenario: 我需要以下方案的帮助:

I have page template PT1 , which contains 2 TBBs and I have component template CT1, which contains 1 TBB. 我有页面模板PT1,它包含2个TBB,我有组件模板CT1,其中包含1 TBB。

I created a page using the Page Template(PT1) and added a component and selected the component template (CT1). 我使用页面模板(PT1)创建了一个页面,并添加了一个组件并选择了组件模板(CT1)。

The TBBs pushing some text value to package and all three TBB are part of a single dotnet assembly and implemented in three different class, which is implementing "Itemplate" interface and implement "transform" method. TBB将一些文本值推送到包和所有三个TBB都是单个dotnet组件的一部分,并在三个不同的类中实现,即实现“Itemplate”接口并实现“转换”方法。

Problem: 问题:

In the published file i am able to see the content pushing by TBB used in Page Template PT1, but not able to see content which is pushing by TBB of Component Template CT1. 在已发布的文件中,我能够看到页面模板PT1中使用的TBB推送的内容,但无法看到组件模板CT1的TBB推送的内容。

Typically, to output from a template you need to create a DWT TBB unless you are directly sending Output from C# TBB. 通常,要从模板输出,您需要创建DWT TBB,除非您直接从C#TBB发送输出。

In your case, looks like you have all C# TBBs and are they outputting anything to the package. 在您的情况下,看起来您拥有所有C#TBB并且他们正在向包中输出任何内容。 If not then I even doubt your PT will output any html. 如果没有,那么我甚至怀疑你的PT会输出任何HTML。

You could use the Template Builder tool to debug your out of the template as in my comments the doc portal link will provide you guidance. 您可以使用模板生成器工具调试您的模板,因为在我的评论中,文档门户链接将为您提供指导。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 在SDL Tridion 2011中的Dreamweaver模板构建块中处理多个组件演示文稿 - handling multiple component presentations in Dreamweaver Template Building block in SDL Tridion 2011 如何在Dreamweaver模板构建块中检查嵌入式架构中的字段是否为空 - How to check if the field in embedded schema is empty in Dreamweaver Template Building Block 如何筛选Dreamweaver模板构建块中字段的内容 - How to filter the content of a field in a Dreamweaver Template Building block 在SDL Tridion 2011 Sp1中为.Net模板构建块启用内联编辑 - Enabling Inline Editing for .Net Template Building Block in SDL Tridion 2011 Sp1 在Tridion Link Resolver模板构建块中,Binary和Multimedia之间有什么区别 - In the Tridion Link Resolver template building block, what is the difference between Binary and Multimedia 如何使用JavaScript获取组件和组件模板tcm id? - How to get the component and component template tcm id using JavaScript? 使用XSLT组件模板时访问类别的子关键字 - Accessing a category's child keywords when using XSLT component template 隐藏Dreamweaver模板中的组件链接 - Hide component link in Dreamweaver Template 组件模板和页面模板需要TBBS,以通过组件链接实现组件的SiteEdit - TBBS required for Component Template and Page Template to implement SiteEdit for Component with component links Tridion DynamicContent.Query按组件模板搜索 - Tridion DynamicContent.Query Searching By Component Template
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM