Documentation Center

Managing Web site code (TCDL)

It is recommended to manage your Web site code using SDL Tridion. When you use and create tags in a technology-neutral language called TCDL, Content Delivery transforms into your Web site's language (actual code) at various stages of the delivery process.

You can implement dynamic functionality for your Web site in various ways:

Unmanaged code
Unmanaged code is Web site code, stored on your Web site, that is not handled by SDL Tridion. You can create templating code in SDL Tridion that output calls to your code.
The disadvantage of unmanaged code is that you are responsible for ensuring that the code is in the right location, that it works as intended, that it is the latest version, and so on.
Loosely managed code
You can insert ASP.NET or JSP statements in your templating code that are rendered 'as is' and are executed at request time.
Although your code is versioned and in the right location, it is difficult to debug and if you intend to use the Content Delivery Web service, then third parties calling your Web service get ASP.NET or JSP code in their response, code that they may not be able to run.
Tightly managed code
You can insert TCDL statements in your templating code. TCDL is a technology-neutral language that you can transform into your Web site's language at publish time or at request time. TCDL tags are available for standard Content Delivery functionality and you can also create your own TCDL tags.
The advantage of letting SDL Tridion manage your Web site code is that your code is in the right location, works as intended, is versioned, and so on.