Custom ColdFusion Functions MultiPurpose Function The ecmMultiPurpose function displays either a content block or an content block associated with a form. As a result, you can use one template to display both types of content block. Here is the format for the Multipurpose function To pass in a standard content block, pass the id value in the url parameter, as illustrated below. http://localhost/CMS400Example/index.asp?id=2 To pass in a Form content block, pass the ekfrm value in the url parameter, as illustrated below. http://localhost/CMS400Example/index.asp?ekfrm=2 NOTE For more information about passing the id value as a url parameter, see ”Dynamic Content Block” on page 381. If the id value or ekfrm value does not exist, a blank template appears. If the url parameter is not passed in or recognized, the function calls ecmContentBlock and passes the DefaultID value as the id argument. If the DefaultID value is zero (0), ecmContentBlock is not called. Metadata Function The metadata tag is used to display the metadata for one or more content blocks in the EktronCMS400.NET Web site. Inserting this custom tag will allow you to generate the list of metadata that is edited by the authors, and insert it in the source of the Web page. EktronCMS400.NETDeveloperReferenceManual, Version 5.0, Revision 8 398
Custom ColdFusion Functions Shown below is an example of what the metadata custom tag looks like. This function is basically the same as the Metadata function in ASP. See ”Metadata Function” on page 132 for details. The only difference between the Coldfusion function and the ASP one is the syntax for implementing it. The ColdFusion examples are below.