OpenWGA 7.0 - TMLScript reference

Design
Method :

layoutURL([medium])

On object Design
Usage Generates a URL that calls a WebTML module, adressed by the base reference of this design object, as outer layout without document context
Description Generates a URL for a "contextless call", which will simply render a WebTML module as outer layout in the context of a "dummy content". The WebTML module is the one which is adressed by the base reference of this Design object. The module must be allowed for direct access for the URL to work.
Parameters

medium (String, optional):

The media key for which to generate the URL. Omitting it will use the current WebTML medium of the environment

Return value The generated URL (String)
Allowed in script types
  • WebTML pages and normal WebTML actions
  • Master actions
  • TMLScript tasks in jobs
  • Content type events
Examples

Generating an URL to to WebTML module "/tml/html/main.tml" from the design of the current app:

WGA.design().resolve("main").layoutURL("html")