Using TV Bindings
Bindings allow a TV to get its content from an external source. This could be the output of specified PHP code, a file, another document or from the database. Bindings are specified by using the @BINDING syntax in the TV's Default Value field.
The @BINDING Options
There are seven binding options.
- @FILE - use the contents of the given file.
- @CHUNK - use the contents of the given chunk.
- @DOCUMENT - use the unprocessed content of the given document.
- @SELECT - queries the database.
- @EVAL - uses the output of given PHP code.
- @INHERIT - inherits the value of the same TV as set for a parent document.
- @DIRECTORY - a list of files in the given directory. The list uses || as a delimiter.
to be continued...