OpenWGA 7.11 - TMLScript reference

Method :

getTMLModuleNames(mediaKey, descend)

On object Design
Usage Returns the names of all WebTML modules of the given media key whose design name starts with the baseReference of this design object
Description Use this method to query for WebTML modules that are on the folder (or subfolders if parameter descend is true) addressed by the current baseReference.

mediaKey (String):

The media key of the WebTML modules to retrieve

descend (Boolean):

Specify true to also add resources on subfolders. When false only resources on the exact folder of the base reference are returned.

Return value List of design names (String)
Allowed in script types
  • WebTML pages and normal WebTML actions
  • Master actions
  • TMLScript tasks in jobs
  • Content type events

Assuming that this code is run from a WebTML module it will return the WebTML modules that are stored in the same design folder as the current one:"..").getTMLModuleNames("html", false)