In the dream label, sometimes some system-written tools are used, such as GETDATETIMEMK (@me) formatting time and Cn_substr (@me, 50) intercept strings, and so on, how to customize a tool method, open the directory \include\helpers folder, this helpers under the File name. helper.php named files are tags of the tool method file, has been in the writing template before the loading, we pick one of the files, such as string.helper.php file open to modify, at the bottom of the set up by the sign bit back to pass the method, such as:
/**
* Returns a string determined by the flag bit *
* @param int $flag flag bit
* @return string
/if ( ! Function_exists (' Getstrreport '))
{
function getstrreport ($flag)
{
if ($flag ==0) {
return ' Normal ';
}
if ($flag ==1) {return
' canceled ';}}}
After you save it, you can use this custom tag tool method in your template development, such as:
<TD width= "15%" >
Status: {Dede:field.report function= "Getstrreport (@me)"/}
</td>