[TYPO3-dev] Use of Templavoila API
    Carlos Meyer 
    cm at neonblue.de
       
    Mon Jul  6 19:14:51 CEST 2009
    
    
  
Hi list!
 
I am writing a FE Plugin  using the Templavoila API. It works, but I have a
question:
 
I use the $apiObj->getContentTree('pages',
t3lib_BEfunc::getRecordRaw('pages','uid='.intval($id))); method to fetch the
content structure of the page .  This method use some t3lib_BEfunc methods. 
 
So it is necessary to set the - $GLOBALS['BE_USER']->workspace = 0 -  if no
$GLOBALS['BE_USER'] exist (I am not logged in). 
 
If I don't do this  workspaceOL() called in getContentTree_element overrides
my &row and my plugin doesn't  work.
 
At the end of the main function I unset the object ($GLOBALS['BE_USER'])  if
($this->onlyFE) unset($GLOBALS['BE_USER']).
 
So this is my solution, but I think this is not the right way (quick and
dirty). Has anybody a better idea to solve this?  My idea is to overload the
getContentTree() method and call t3lib_BEfunc::getFlexFormDS with the
parameter $WSOL = FALSE.
Regards,
Carlos
 
    
    
More information about the TYPO3-dev
mailing list