The document data object

The document data object is used to access the content of a document.


[property name]

Returns the data value associated with a specified document property. Document properties will always be returned in HTML format.

Syntax:

[property name] → string

Returns:

The data value associated to a specified property name.

Example:

The following code obtains the values for two document properties:

<#assign doc = liquidsite.findDocument("Section1/doc1")>
Document title: ${doc.title}
Document text:  ${doc.text}