OpenWGA 7.10 - TMLScript reference

Design
Property :

baseReference

On object Design
Usage Returns the base reference where this design points to
Description

A design object may contain a base reference. This is the name of a design resource - either WebTML module, script module or file container - which is used for various operations of this Design object, like:

  • Retrieving the WGAPI counterpart of the resource of that name using getFileContainer(), getScriptModule() or getTMLModule()
  • Building URLs to the WebTML module of that name using layoutURL()
  • Fetching Design objects which have a base reference containing the name of a different resource using resolve(), using a design reference relative to the current base reference

This may return an empty string if the design object has no particular base reference.

To fetch a Design object with a specific base reference from a Design object that has none use method resolve() giving it the name of the resource.

Return value The base reference name (String)
Allowed in script types
  • WebTML pages and normal WebTML actions
  • Master actions
  • TMLScript tasks in jobs
  • Content type events