[TYPO3-dev] Making backend records read-only

Steffen Kamper steffen at dislabs.de
Sun Sep 3 11:09:05 CEST 2006


me again

I thought about and for me it doesn't make sence to rewrite all alt_doc only 
for getting a hook ...

Is it a possibility from ext_tables.php or some place in the extension to 
catch the getVars, react with the right ones, performing sql and 
manipulating TCA ?
Might be dirty but it's only way to get this. Any better suggestions ?

vg  Steffen

"Martin Kutschker" <martin.kutschker-n0spam at no5pam-blackbox.net> schrieb im 
Newsbeitrag news:mailman.1.1157221964.4241.typo3-dev at lists.netfielders.de...
>
> Doesn't tm_contentacces (sp?) by Tapio Markula do that already?
>
> Masi
>
> Steffen Kamper schrieb:
>> Hi Jeff,
>>
>> for my oppinion there have to be a hook on clicking the edit. The proc 
>> called is alt_doc.php/makeEditForm()
>> but there is no hook. It would be easy if changed permissions before 
>> entering this function building the edit form.
>>
>> May be one of the core specialists know a solution ...
>>
>> mg  Steffen
>>
>> "Jeff Segars" <jsegars at alumni.rice.edu> schrieb im Newsbeitrag 
>> news:mailman.1.1157148625.13646.typo3-dev at lists.netfielders.de...
>>> I'm trying to make certain backend records within an extension 
>>> read-only, but I haven't been able to figure out of its possible.
>>>
>>> I've seen the readOnly flag in the ctrl section of the TCA, which can be 
>>> used to set an entire table as readOnly (See [1]).  I'm looking for a 
>>> way to achieve this same effect on a per-record basis though, depending 
>>> on whether a flag is set in the record.
>>>
>>> My first thought was to to find a hook and modify the TCA on the fly for 
>>> each record, but I haven't been able to find any hooks to modify list 
>>> view (looking in typo3/class.db_list.inc and 
>>> typo3/class.db_list_extra.inc).
>>>
>>> Does anyone have suggestions on how this can be done?
>>>
>>> Thanks,
>>> Jeff
>>>
>>>
>>> [1] 
>>> http://typo3.org/documentation/document-library/core-documentation/doc_core_api/current/view/4/2
>> 





More information about the TYPO3-dev mailing list