[TYPO3-dev] System handling action links

Tapio Markula tapio.markula at xetpoint.fi
Fri Oct 12 17:14:42 CEST 2007


Hi

I created for my plugins relative compact way to handle action links
like edit, hide etc.


a) a function creates link mode, which sets also the layout of the link

$link=tx_pixefeeditingCreateLinks::greateLink($this->imagePath,'button_unhide','unhide',$BE_USER->extGetLL('p_unhide'),$BE_USER->extGetLL('p_unhide'),$this->modTSconfig['properties']['editIconMode']);

b) links are array items, which simple function call
$this->panelItems['hide'] = 
$this->editPanelLinkWrap($link,$formName,'unhide');

that makes possible to set desired order and desired layout. Base code 
is clean and readable, but the solution is much more flexible as current 
solution. This can be applied to all action icons.


						




More information about the TYPO3-dev mailing list