OpenWGA 7.10 - OpenWGA Concepts and Features

Design and development » WebTML » Basic concepts » Design References

Going down below the current base reference

Sometimes in WebTML development you may have a folder as base reference, for example when using the resolve functionality in TMLScript. Imagine a folder "layouts" in your design where multiple WebTML modules and subfolders are available. You could get a Design object referencing this folder the following way:

var layoutFolder = WGA.design().resolve("layouts");

If your current base reference is a folder instead of a module then you might want to reference the modules it contains or its subfolders. To do this in a relative manner you need something to represent the current base reference in its completeness. The single dot "." can be used for this as it represents the current base reference. So this here goes down to to the subfolder (or design resource) "layouts:small":

var small = layoutFolder.resolve(".:small");