Take the 2-minute tour ×
Tridion Stack Exchange is a question and answer site for Tridion developers and administrators. It's 100% free, no registration required.

A 'standard' Tridion Deployer configuration contains TCDL Transformers for pages and component presentations, which typically convert language neutral TCDL markup into web app specific code (like JSP or ASP.NET):

<Module Type="ComponentPresentationDeploy" Class="com.tridion.deployer.modules.ComponentPresentationDeploy">
    <Transformer Class="com.tridion.deployer.TCDLTransformer" />
</Module> 
<Module Type="PageDeploy" Class="com.tridion.deployer.modules.PageDeploy">
    <Transformer Class="com.tridion.deployer.TCDLTransformer"/>
</Module>

I guess its possible to add your own custom or extended Transformer, but is this supported?

The (potential) use case I have is to resolve TCDL links into static URLs at deployment time using the linking API. This would be required when publishing to a system which (for various reasons) is not capable of using dynamic linking in published pages.

share|improve this question
add comment

2 Answers

up vote 5 down vote accepted

Of course. It's documented too, albeit as more of an outline than a complete walkthrough:

Creating custom TCDL tags

You can find more information in the Content Delivery API documentation, available on this page:

API reference documentation downloads

share|improve this answer
    
Thanks Peter - I was searching the docs for the wrong thing so didnt find this. I was pretty sure it was possible though –  Will Price Dec 19 '13 at 10:04
add comment

To my knowledge TCDL Transformers always have been a supported extension point, they came around in R5.3 I guess and were promoted in the beginning. Later the com.tridion.tcdl.TagHandler and com.tridion.tcdl.TagRenderer extension points were added and those appear to be promoted currently through the documentation.

In your case, you want to transform a tag during publishing/deployment, so you can create a class that implements the interface com.tridion.tcdl.TagHandler.

If you would want to transform this tag at request time (for use by the Web service), then you would create a class that implements the interface com.tridion.tcdl.TagRenderer.

share|improve this answer
1  
TCDL Transformers were always used in Tridion to generate output for ASP.NET (I think that came in 5.1 or 5.1SP1). In 5.3 their use was extended to also cover ASP and JSP output. –  Frank van Puffelen Dec 20 '13 at 12:23
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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