Here you can find a list of allowed markers that you can use in templates. Each marker will be replaced by the applicable content. Markers can be used as follows: #marker# The marker will be replace, these are especially handy within elements. The marker will be replace, these will not be visible if you view the template in a browser. content The marker and its content will be replaced, only the content will be visible if you view the template in a browser. This is the required way of using "looping" markers. Markers starting with an _ (underscore) should be considered as "general" markers. These are defined and handled by the Template class. The markers not starting with an underscore are considered as module fields. So if $some marker is defined in the template and $some field exists in the module it can be used. Each marker may be used on its own level and all level beneath it. So for instance base_url maybe used anywhere but _oddeven may only be used within the _row loop. Available $field value mutilation functions: - humanReadableNumber($decimals=0, decimalseparator=$configuredSeparator) //see config, configModule and configFields - humanReadableFileSize($decimals=0, decimalseparator=$configuredSeparator) //see config, configModule and configFields - leadingZeros($length) - strip($length=32, $suffix="...") - stripTags - replace($pattern, $replacement="") - case($type) - where $type is: upper, lower, first or words - encode($type) - where $type is: html, markup, url or html;markup;url - decode($type) - where $type is: html, markup, url or html;markup;url - scrambleEmail - dateConvert($dateformat) //see http://php.net/date - timezoneConvert($timezone) //see http://php.net/timezones See data.base.php and mutilate.php for more information. Markers: Show base URL, usually empty or / Show current page URL: $base_url?p=$pageNR& or $base_url/$page/ Show item URL: $base_url?p=$itemPageNR&nr=$itemNR& or $base_url/$itemPageNR/$itemNR/ Show CMS URL: $base_url?p=$cmsPageNR&m=$module&nr=$itemNR& or $base_url/$cmsPageNR/?m=$module&nr=$itemNR& Show comma separate list of sort fields. Note that this field is mainly useful in if statements. Also the actual URL sort order variable is: "sort". Show module name Show module title Show title field name Show title field title Show title field value Show title field type Loops through all fields Show field name Show field title Show field value Show field type Show $field value Show $field1 sub $field2 value Show $field1 sub $field2 sub $field3 value Show $field1 reference entry 0 sub $field2 value Show $field1 reference entry 0 sub $field2 reference entry 1 sub $field3 value entry 1 Mutilate $field1 value with function Mutilate $field1 value with function, passing arg1 and arg2 arguments Mutilate $field1 sub field2 value with function Show $field title Show $field type Loops through all data rows Show "odd" or "even" depending on the row number In tree mode it renders the next level of the tree in this tag. A _row tag containing another _row tag or _row marker will act as wrapper. So if this tag includes #_row# only the marker will be replaced with the content in the _row tag, all surround text/tags will still be visible. Loops through all entries of $field1, each sub entry of for example $field1.$field2 can then be used in if statement or to display. The field can either be a 0:*, 1:* or *:* reference or a multi entry field (modules, multilist, etc) Total amount of rows Current total amount of rows Content is display if $field is true, i.e. not "", 0 or false Content is display if $field1 sub $field2 is true, i.e. not "", 0 or false Content is display if $field1 sub $field2 sub $field3 is true, i.e. not "", 0 or false Content is display if $field is true Content is display if $field not is true Content is display if $field is 1 Content is display if $field is greater then 2 Content is display if $field is greater or equal to 3 Content is display if $field is smaller then 4 Content is display if $field is smaller or equal to 5 Content is display if $field is not 6 Content is display if $field is "some text" Content is NOT display if $field is true, the ! (not operator) can be used with all operators above Content is display if user has the applicable rights, possible right types: add, copy, edit, move, delete and owner Content is display if user has the applicable rightsContent is display if user doesn't have the applicable rights Content is display if use doesn't have to applicable rights