Scripting Languages


Content from the system can be published as files with any desired file extension. For example, from a single content repository multiple sites can be managed, each with a different scripting language like ASP, ASPX, PHP, CFM, SSI, and JSP. The system supports managing content that is published to multiple servers in a non-heterogeneous environment.

scripting languages chart

The first step for publishing content with a specific file extension is to modify the publish target.

A. Change Target Output File Extension

To change the target output file extension:

  1. Go to the Administration area, and select Targets & Destinations from the left navigation bar.
  2. Select the desired target from the left navigation bar. In our case, we will choose the /web target.
  3. Click the Edit tab.
  4. In the Output File Extension field, type .asp (or a different extension, depending on your needs).   edit target
  5. Click the Submit button to save the updated target.

With a target set to publish files in a designated extension, the next step is to incorporate the appropriate source code include line. Code to include other scripting code can be entered directly in the template or in blocks or stylesheets that are placed in template regions. Includes can even be dynamically written out with XSLT based on input from the user in a data definition or system asset. The benefit is that content from the system can be combined with custom programming to create new opportunities.

B. Incorporate Scripting Include in Template

To modify the template with scripting include code:

  1. Go to the Home area.
  2. Browse to a page that uses the desired template. In our case, we will select /web/about.
  3. On the View tab of the page, click the Configurations pane to view the individual configurations and their corresponding templates.
  4. With the configurations and their templates displayed, click on the template to be modified. In our case, we will select /web/templates/standard from the HTML configuration.
  5. Now with the template displayed, click the Edit tab.
  6. For the XML field, scroll to the very bottom and put in the appropriate include code before the tag. For our ASP example, we will enter:
  7. Click the Submit button to record the template change.


With the template updated, now you can publish out the content and it will have the appropriate file extension and scripting language includes. Because the scripting language include won’t be processed in the CMS, it is sometimes important to give the CMS user a visual clue that a specific region of content will be different when it is published to the live server. The CMS supports pseudo-tags whereby content is tagged as viewable internally in the CMS or externally when content is published. 

C. System View Internal and External

To incorporate the pseudo-tags for internal and external view, please do the following:

  1. Browse to the appropriate template. In our case, we will select /web/templates/standard.
  2. Click the Edit tab.
  3. Scroll to the bottom of the XML field area and just before the body closing tag, type the following:
  4. Click Submit to record the template changes.

If you browse to a page that uses the template, you’ll see the content at the bottom of the page. When you publish the page, the resulting file won’t have the notice and will have the include for the actual dynamic code.

system view internal 

    Videos

    See Also