OpenWGA 7.0 - TMLScript reference

Design
Method :

getTMLModule(mediaKey)

On object Design
Usage Returns a WGAPI WebTML module object for a module at this designs base reference
Description

This retrieves a WebTML module of the name that is stored in the design contexts base reference. The media key of the desired module is to be given as argument.

Use this together with Design.resolve() to retrieve WebTML modules in a way that takes relative WebTML addressions and overlay adressation into account.

Parameters

mediaKey (String:

Media key of the module to retrieve

Return value WGAPI WebTML module object or null if none was found
Allowed in script types
  • WebTML pages and normal WebTML actions
  • Master actions
  • TMLScript tasks in jobs
  • Content type events