Skip to content

Instantly share code, notes, and snippets.

@hendrik-goebel
Created July 8, 2014 10:15
Show Gist options
  • Save hendrik-goebel/d247d382b73694131def to your computer and use it in GitHub Desktop.
Save hendrik-goebel/d247d382b73694131def to your computer and use it in GitHub Desktop.
TYPO3 user function
<?php
class user_terms {
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.= $this->cObj->stdWrap($content, $conf['stdWrap.']);
return $content;
}
}
includeLibs.terms = fileadmin/base/userfunctions/terms.php
temp.info = USER
temp.info {
userFunc =user_terms->main
stdWrap.data = {TSFE:fe_user|user}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment