I have project requirements for generating a HTML document upon publishing of a Page and convert the HTML document to PDF file.
The code will do the following:
- Load all published pages from the Structure Group tree
- Run through all Component Presentations on loaded pages
- Get hold of Component from each Component Presentation
- Read Component fields building the HTML document
- Component fields can have internal Tridion links
This is where I need some directions...
In the templating world, we can use default TBB: Link Resolver. The Link Resolver TBB will output <tcdl>
tags that are resolved by Content Delivery API on the application side.
Is there a way to do this from Event System code or something similar?
Do I need a custom Link Resolver that determines published paths of pages after determining link relationship using GetUsingItems()
method on Component object?
Thank you for your time!