1
votes

As the title already says, I want to make a specific Extbase domain-model completely "read only" .. It is a custom Log-Entry model that shall be viewable but must not be modified via backend (they are being generated during certain controller actions). I do not use the TYPO3 log system intentionally, because I want to have a separate log with its own db-table etc. I do know about the readOnly property for columns, but I`d like to disable any modification-functions in the list view also. Thanks in advance, Oliver

1
What kind of modification-functions in the list view do you mean, which can not be disabled with 'readOnly'?jokumer
I want to completely disable ANY functions that are not list/show. So no record addition,editing/deletion shall be possible via backend.Oliver
If so, what about write your own backend modul, where you can list/show all entries as you want? Then you can hide your table in list modul with 'mod.web_list.table.tx_myext_domain_model_mytable.hideTable = 1'jokumer

1 Answers

4
votes

There's not only option "readOnly" for columns, this option can also be set for the whole table:

$GLOBALS['TCA']['yourTable']['ctrl']['readOnly'] = 1;

Have a look at EXT:static_info_tables, the records from this extension are not editable.