Created
July 8, 2014 10:15
-
-
Save hendrik-goebel/d247d382b73694131def to your computer and use it in GitHub Desktop.
TYPO3 user function
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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; | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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