| | | |
. | # deletedby | - The ID of the user who deleted the document. | |
. | # menutitle | - The title to be shown in the menu. If empty, the pagetitle is used. | |
. | # donthit | - [0|1] Disable page hit count for the document. | |
. | # haskeywords | - [0|1] Whether or not the document has links to keywords. | |
. | # hasmetatags | - [0|1] Whether or not the document has links to meta tags | |
. | # privateweb | - [0|1] Whether or not this document has been assigned to a private web document group. | |
. | # privatemgr | - [0|1] Whether or not this document has been assigned to a private manager document group. | |
. | # content_dispo | - [0|1] Whether the document's content-disposition is attachment or inline. | |
. | # hidemenu | - [0|1] Whether or not the document is to be hidden in the menu. | |
. | | | |
. | | | |
. | Custom template variables | | |
. | [*custom name*] | Any custom template variable | |
. | $TVarray = $modx->getTemplateVarOutput(array('TV NAME')); | Calling TVs in a snippet
The content of the TV is now in the array $TVarray['TV NAME'] by character. (e.g. $TVarray['TV NAME'][1] is the second character in the string. | http://wiki.modxcms.com/index.php/Adding_TV_Widgets_without_hacking_the_core |
. | @BINDINGS | Data Sources can be tied (or “bound”) to a Template Variable for formatting and displaying in document. these can be used to fill a template variable (even a default value) with external data, other documents from the document tree, etc. | |
. | @DIRECTORY path_to_folder | Binds the variable to a folder, where path_to_folder_ is the path to the folder. It returns the list of files in the specified folder. | |
. | @INHERIT | default content cascades from parent document's tv.
This binding takes advantage of the hierarchical structure of the document tree by allowing Template Variable content to "cascade" down the document tree. What this means is that you can apply content to whole sections of your site by editing just one TV. | |
. | @FILE file_path | Binds the variable to a file, where file_path is the path and name of the file. The return value is a string containing the content of the file. The file path is the abosulte path from the root of the server or your particular installation. | |
. | @DOCUMENT document_id | Binds the variable to a document. Where document_id is the numeric id of the document. The returned value is a string containing the content of the document. | |
. | @CHUNK chunk_name | Binds the variable to a document. Where chunk_name is the name of the chunk. The returned value is a string containing the content of the chunk. | |