2

Is it possible to call TBB processing a component within a page at the time of publishing the page itself (with the subsequent replacement of a component with a component that has been processed TBB)?

2

Yes, it is possible. Publishing itself is a multi-stage process.

The first stage is Resolving: this is where a class adds/removes/edits publish items to the publish Package, you would implement a Customer Resolver class to do this (see https://docs.sdl.com/LiveContent/content/en-US/SDL%20Tridion%20Sites-v2/GUID-F792AB1A-060A-4757-802D-3A2DB18F022D).

The second stage is Rendering. This is where TBBs come into play and do their thing.

Another way you can manipulate publishing, is by adding actions to publish events via the Event System.

Hope this helps is what you're trying to accomplish. Best bet is to get into Visual Studio and start working with the APIs. If you've already done that, let us know what code you've tried and where you're stuck and we can help with the specifics.

2
  • Thank you for answer. Yes, I add actions to publish events via the Event System. But the building blocks that process my page do not go into the building blocks that process the components of the templates that are on my page Feb 27 '20 at 20:37
  • I see, the Page TBBs and Component TBBs render in separate sessions, so if want to replace the components out during a page publishing session, I think what you need to do is implement a custom resolver to get the correct TBBs into the package before rendering them. Mar 2 '20 at 14:12

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.