[TYPO3] How to use getEditIcon (parameter trouble)?

Tapio Markula tapio.markula at dnainternet.net
Wed Apr 5 15:24:07 CEST 2006

Francesco Pessina wrote:
> Hi to everyone!
> How to use correctly the getEditIcon function?
> for example:
> $this->pi_getEditIcon('','some_my_table_fiels','a_title_for_window',$row,'my_plugin_table',$conf); 
> I set:
> - some_my_table_fiels: write a comma separated text list of some fields 
> (from a table) wich I would to edit (for example 'title, picture')
> - my_plugin_table is the table name from where I take the records to be 
> edited (the records above)
> - a_title_for_window: a text title for the pop-up windows (like 'Edit'?)
> - $row: the current rowset (from mysql_fetch_array)
> - $conf: an array with some configuration
> The big question is: $conf is the same "$conf" wich is present in the 
> main($content,$conf) or is a custom conf array. If is custom, wich data 
> I must set in it? The icon is generated on FrontEnd but the link is 
> inconsistent (the square brackets [] of the record selector are always 
> empty). A PHP warning is given about array_merge(), second argument is 
> not an array...

Is it really necessary. Below an example of working edit icons for

$tmp = 
					$content .= 

it ends to the table name! no $conf at all!
$tmp is the object, which is rendered before the edit icon.

More information about the TYPO3-english mailing list