[TYPO3-dev] Frontend Editing: Edit record from extension in frontend editing is possible?

Francesco Pessina typo3news at yahoo.it
Thu Apr 20 16:38:41 CEST 2006


Yes you can.

On each record wich you want to show the edit pencil icon you must add the following PHP code:

$table_ref = 'name of table wich you want to edit';
$record_ref = 'id of current record to edit';
$currentHost = $_SERVER["SERVER_NAME"];
$editorWidth = 600;
$editorHeight = 400;

$editString  = '<a href="#" 
onClick="vHWin=window.open(\'http://'.$currentHost.'/typo3/alt_doc.php'?edit['.$table_ref.']['.$record_ref.']=edit&noView=0&returnUrl=close.html\',\'\',\'width='.$editorWidth.',height='.$editorHeight.',status=0,menubar=0,scrollbars=1,resizable=1\');vHWin.focus();return 
  false;"><img '.t3lib_iconWorks::skinImg(TYPO3_mainDir,'gfx/edit2.gif','width="11" 
height="12"').'border="0" alt="Edit" title="Edit" /></a>';

NOTE: the line above is ONE line!

Cheers, Francesco.

Stefan Geith ha scritto:
> Richard Paquet schrieb:
>> Hi Everybody,
>> Frontend Editing: Edit records from extension in frontend editing is 
>> possible?
>> and How?
>>
> 
> Maybe one of my plugins sg_... helps you.
> These are all based on the library sg_zfelib, that
> enables FE-Users to add data in the FE.
> 
> But there is no common way to add FE-User-Editing
> to a given plugin, that doesn't support this.
> 
> -
> 
> Stefan Geith
> 
> 




More information about the TYPO3-dev mailing list