Documentation Center

Management server settings

You can configure script extensions in the Management Server settings section of SDL Web Content Manager configuration.

About this task

You can use script extensions to use any COM object in the render engine. The script extension enables any simple VBScript or JScript Template to use this function when content is published or previewed. Note that Compound Templates (Modular Templating Framework) do not require you to configure script extensions.

  • The name of the object that can be used from simple VBScript or JScript Templates
  • The ProgID of the COM object to be created
  • The server on which the COM component is to be instantiated

Procedure

  1. Start the MMC Snap-in by selecting Programs > SDL Web > SDL Web Content Manager configuration in the Microsoft Windows Start menu.
  2. Navigate to the Management server settings > Script Extension section.
  3. Select the Script Extension and choose New Script Extension from the context menu.
    The Add Script Extension dialog opens.
  4. In the dialog, fill in the following fields:
    TCM Object Name
    the name of the object that can be used from simple VBScript or JScript templates
    COM Object Name
    the ProgID of the COM object that can be used from simple VBScript or JScript Templates
    Remote Server
    (optional) if the Components are running on a different server, the name of the server that will instantiate the COM object
  5. Click OK.
  6. Restart IIS and COM+ to ensure updated settings are used—for performance reasons, the processes that use the MMC Snap-in settings cache them in memory.

Example of a script extension

For example, for the following COM object: MyLib.Functions, the SDL Web script extension stipulates the following information:

TCM Object Name
FunctionLib
COM Object Name
MyLib.Functions

When using this function in a template, the object called using, for example:

If FunctionLib.Validate(x)=true then
...

where Validate is a function or method.

Or:

WriteOut FunctionLib.GetTitle("tcm:5-85-16")