[TYPO3-formidable] best way for getting oDataHander data in a	userobj lister
    Domi Garms 
    djgarms at gmail.com
       
    Mon Aug 16 07:01:34 CEST 2010
    
    
  
Good Morning,
I just wondering what would be the easiest way for getting the value
for a renderlet in a LISTER. I want to render the gender, which is
saved as 0 or 1 in the datasource, it should rendered as male or
female
My snippet is:
<!-- GENDER -->
				<column name="gender" type="renderlet:BOX" mode="inline" >
					<html>
						<userobj>
							<php><![CDATA[
								$aData = $this->oDataHandler->getListData();
								$aData['gender'] = ($aData['gender'] == 1) ? "female" : "male";
								return $aData['gender'];
							]]></php>
						</userobj>
					</html>
				</column>
Because I need this function quite often, not sure if there is a
better way for doing it...Thanks for any hint!
Regards,
Domi
    
    
More information about the TYPO3-project-formidable
mailing list