Skip to main content
Skip table of contents

DAP Part

A DAP part represents one of the Parts of the currently running Online template. A DAP part value doesn't have much other use besides being able to tell its name and the names of its contents, but in some cases that information may come useful. These values can only be found through the Document properties doc variable.

Methods

getItems()

Resolves into a Collection containing DAP Content Item values representing the files inside this Part.

For example, the expression ${doc['Main'].getItems()} resolves into a Collection containing the items of the Part "Main".

getName()

Resolves into a String that is the name of this Part.

For example, the expression ${part.getName() == 'Footer'} resolves into true if the Part is called "Footer".

Using the shorthand form the expression becomes ${part.name == 'Footer'}.

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.