OpenWGA 7.7 - TMLScript reference
DesignMethod :
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. |
Parameters |
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 | A List of design names (String) |
Allowed in script types |
|
Examples |
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: WGA.design().resolve("..").getTMLModuleNames("html", false) |