user1773981
user1773981

Reputation: 41

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.

I created a page using the Page Template(PT1) and added a component and selected the component template (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.

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.

Upvotes: 1

Views: 486

Answers (1)

Ram G
Ram G

Reputation: 4829

Typically, to output from a template you need to create a DWT TBB unless you are directly sending Output from C# TBB.

In your case, looks like you have all C# TBBs and are they outputting anything to the package. If not then I even doubt your PT will output any 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.

Upvotes: 3

Related Questions