[TYPO3-dev] get actual value of colPos in TCA context
    Steffen Müller 
    typo3 at t3node.com
       
    Sun Jun 14 19:30:31 CEST 2009
    
    
  
Hi.
On 09.06.2009 15:34 Steffen Kamper wrote:
> you have complete row in params
> function yourItemsProcFunc(($params, $conf)
> 
Thanks. Sometimes the solution is too near ;-)
In itemsProcFunc, $pObj reveals the information:
# $pObj->cachedTSconfig['tt_content:38']['_THIS_ROW']['colPos']
Here, 38 is the uid of the actual content element. Since the array key
contains the uid of the record, I have to use some helpers:
# $key = key($pObj->cachedTSconfig);
# $colPos = $pObj->cachedTSconfig[$key]['_THIS_ROW']['colPos'];
The value of $colPos can now be used for item manipulation, although it
looks quick & dirty.
Do you have a nicer suggestion?
-- 
cheers,
Steffen
TYPO3 Blog: http://www.t3node.com/
    
    
More information about the TYPO3-dev
mailing list