OpenWGA 7.6 - TMLScript reference

Design
Method :

plugin()

On object Design
Usage Returns the Plugin object for the OpenWGA plugin that provides the current design
Description

If the design originates from a plugin returns the Plugin object of the plugin providing the design. This always returns the base design of the application in case the design is customizable. In order to also retrieve overlay design plugins you need to use plugins().

Return value Plugin object with information about the design provider plugin or null if the current design does not originate from a plugin
Allowed in script types
  • WebTML pages and normal WebTML actions
  • Master actions
  • TMLScript tasks in jobs
  • Content type events
Examples

A script code that returns the id of the plugin from which the current design originates:

This design is provided by OpenWGA Plugin: <tml:script expression="WGA.design().plugin().id"/>