[TYPO3-hci] BE vs FE

Tapio Markula tapio.markula at dnainternet.net
Mon Aug 7 11:00:08 CEST 2006


Waldemar Kornewald wrote:

> News items was just an example. My suggestion is to move the "Create
> new record" function to the top and make it easily accessible. That
> would make all operations easier, not just news items.

easy to implement

just

function viewPageIcon($id,$backPath,$addParams='')

	// Create new record (general)
		$str.= '<a 
href="'.htmlspecialchars($this->backPath.'db_new.php?id='.$id.'&returnUrl='.rawurlencode(t3lib_div::getIndpEnv('REQUEST_URI'))).'" 
title"'.$GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_mod_web_list.php:newRecordGeneral',1).'"><img 
title"'.$GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_mod_web_list.php:newRecordGeneral',1).'" 
'.t3lib_iconWorks::skinImg($this->backPath,'gfx/new_el.gif','').' alt="" 
/></a>';
		
adds new item to after view page to the top-left corner - exactly
what you wanted!



More information about the TYPO3-team-hci mailing list