Calling plugin from other extension does not work
I would like to include a map created by odsosm into another extension with cObjGetSingle().
$osmconf['marker.']['tt_address'] = implode(',', $uids);
$osmconf['height'] = '400';
$osmconf['width'] = '500';
$osmconf['external_control'] = 0;
$osmconf['mouse_navigation'] = 1;
$osmconf['show_popups'] = 1;
$osmconf['zoom'] = 13;
$osmconf['lat'] = $mylat;
$osmconf['lon'] = $mylon;
$cObj = t3lib_div::makeInstance('tslib_cObj');
$content .= $cObj->cObjGetSingle('USER', $osmconf);
I replaced the $pagerender->addJsFile() calls by $GLOBALS['TSFE']->additionalHeaderData = ... which fixed this part of the problem, but the code for T3_onloadWrapper() is still missing.
Either am doing something totally wrong or there should be a switch to change the way js code is inserted.