[TYPO3-dev] Frontend Editing: Edit record from extension in frontend editing is possible?
Francesco Pessina
typo3news at yahoo.it
Thu Apr 20 18:42:10 CEST 2006
Yes, Stefan have right.
Only a LOGGED BackEnd users can do this trick (with proper permission on record to be edit).
So, before click on the pencil in the FrontEnd, you MUST login in the backend. Otherwise you have a
pop-up window with a login error message.
Sorry for my mistake.
Francesco.
Stefan Geith ha scritto:
> Francesco Pessina schrieb:
>> Yes you can.
>
> Yes and No !
>
> If you mean editing for BE-Users in the FE then yes.
> But if you want to let *FE-Users* edit records, then NO.
>
> If you wan't to let FE-Users edit records, this maus always be
> implemented in the FE-Plugin;
> Please correct me if I'm wrong: then I worked hundrets of hours
> for sg_zfelib for nothing ;)
>
> -
>
> Stefan
>
>>
>> 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
>>>
>>>
>> _______________________________________________
>> TYPO3-dev mailing list
>> TYPO3-dev at lists.netfielders.de
>> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-dev
>>
>
More information about the TYPO3-dev
mailing list