[TYPO3-ect] suggested way of mixing up USER and USER_INT in one plugin-instance
Steffen Kamper
steffen at sk-typo3.de
Sun Dec 30 10:33:04 CET 2007
"Elmar Hinz" <elmar07 at googlemail.com> schrieb im Newsbeitrag
news:mailman.1.1198762731.23411.typo3-team-extension-coordination at lists.netfielders.de...
> Martin Kutschker wrote:
>
>> Franz Koch schrieb:
>>> Hi,
>>>
>>> what is the suggested way to get one plugin instance that acts as USER
>>> or USER_INT object depending on the parameters given in the url for the
>>> latest release of lib/div. Is there a quick guide what's the best way to
>>> do?
>>
>> The main TS object should be a USER. But depending on parameters it
>> should
>> render a USER_INT (instead of plain HTML) with
>> $this->cObj->cObjGetSingle().
>>
>> Masi
>
> Hello Martin,
>
> could you give a little example please. Is there something you suggest to
> implement into lib?
>
> Cheers
>
> Elmar
>
>
Hi,
what MASI is talking about is the solution Joey gave a while ago. I don't
have his original link, but i have written a german tut of this at [1]
It is easy to implement this by generating the TS dynamicly
public function getUSER_INTobject($function) {
$TS['conf']='COA_INT';
$TS['conf.']['10']='USER';
$TS['conf.']['10.']['userFunc']=$function;
return $this->cObj->cObjGetSingle($TS['conf'],$TS['conf.']);
}
vg Steffen
[1] http://www.sk-typo3.de/COA_INT-in-Extensions.190.0.html
More information about the TYPO3-team-extension-coordination
mailing list