(at)DOCUMENT

Syntax

@DOCUMENT 18

Binds the variable to a document, where 18 is the numeric id of the document. The returned value is a string containing the content of the document.

Using this binding we can include other documents as parts of the web template.

For example: We could create a document called MySideBarInfo (id:18) which will store some information to be displayed in the sidebar of our template. We could then create a simple TV called MySideBar and bind it to document 18 (MySideBarInfo)

By adding the [*MySideBar*] variable inside the template we'll be able to render the content of document 18 whenever the page is displayed. This effectively gives you the ability to emulate the "blocks" concept of many other content management systems.

Suggest an edit to this page.