Export (0) Print
Expand All

How to: Make Custom Placeholder Definitions Available to Templates

Content Management Server

In Visual Studio .NET, you edit the list of placeholder definitions for a template by clicking on PlaceholderDefinitions in the Properties window. To add a custom placeholder definition to the list, you need to add a reference to the MCMS configuration file.

To add a custom placeholder definition to an MCMS Web application

  1. Add the custom placeholder definition assembly to the global assembly cache. For more information, see Installing an Assembly into the Global Assembly Cache.

  2. In Visual Studio .NET, on the File menu, click Open, and then click File.

  3. In the Open File window, browse to <InstallDrive>:\Program Files\Microsoft Content Management Server\Server\config, click Microsoft.ContentManagement.Publishing.config, and then click Open.

  4. Add a reference to the placeholder definition by inserting the following code to the <PlaceholderDefinitionTypes> tag.

    <PlaceholderDefinitionType 
        Assembly="MyPlaceholderDefinitionAssembly, Version=n.n.n.n,
        Culture=neutral, PublicKeyToken=FFFFFFFFFFFFFFFF" 
        ClassName="MyPlaceholder.MyPlaceholderDefinition" />
    

See Also

Show:
© 2014 Microsoft