OpenWGA 7.7 - TMLScript reference

Design
Method :

getFileContainerNames(descend)

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

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
Examples

This will return all design names of file containers that are stored as subfolders below file container folder "images":

WGA.design().resolve("images").getFileContainerNames(true)