

With this method you can have a simple way to include your own little php script (if you need it only on one page use the pagephpcontent extension).
Put following typoscript into your template setup.
includeLibs.testMd5 = fileadmin/testMd5.php temp.info = USER temp.info { userFunc =user_testMd5->main value=atest color=#11FAAA } page.XX<temp.info
Save following PHP Script in fileadmin/testMd5.php
<?
class user_testMd5 {
var $cObj;// The backReference to the mother cObj object set at call time
/**
* Call it from a USER cObject with 'userFunc = user_randomImage->main_randomImage'
*/
function main($content,$conf){
$content.='<span style="color:'.$conf["color"].'">'.$conf["value"].' as md5 '.md5($conf["value"]).'</span>';
return $content;
}
}
?>




Add comment