View
If you want to print something on the output, you will use one of Framework's view components. There are not many of them, since there are not many ways how to visualize the data.
Component StaticHTML
This component just prints the specified template on the specified placement. All GET variables are published by default for the use withing the template
Configurable variables:
html | the name of the template to be printed |
placement | the name of the placement where the template will be printed |
Shorthand syntax:
<?
$this->StaticHTML("html","placement");
?>
Component DataList
DataList component is the real backbone of the Framework. It is used for printing lists of data.
Configurable variables:
html | the name of the root template to be printed |
items | the name of the templace to be iteratively printed for each row of data in placement items defined within the root template |
empty | the name of the root template to be printed if the data is empty |
datasources | the link or the array of links to the datasource(s). |
placement | the name of the placement where the root template will be printed |
listid | the id of the list to get from datasources |
format | Output format: html|JSON|json|htmljson . The default is html . For other values, see AJAX documentation. |
enhancelist | all|none . The default is all . Only the fetched list and distributed values are published, if the value is set to none |
distribute | array of key-value dublets to be distributed to all individual rows of the fetched list. See next line for possible override. |
distribute_key | the name of the the array to be distributed. The default is distribute . |