Project

General

Profile

Actions

Bug #54212

closed

No formatting in backend for read only fields (TCA)

Added by Tobias Klepp over 10 years ago. Updated about 10 years ago.

Status:
Closed
Priority:
-- undefined --
Category:
Backend User Interface
Target version:
Start date:
2013-12-05
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
6.1
PHP Version:
5.3
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

If I set a field in my extension table to a read only field with the following TCA definition, the formatting is gone and I only see the number of seconds.

'duration' => array (
  'exclude' => 1,
  'label' => 'LLL:EXT:my_extkey/locallang_db.xml:tx_myextkey_tablename.duration',
  'config' => array (
    'type' => 'input',
    'size' => '8',
    'max' => '8',
    'eval' => 'timesec',
    'readOnly' => 1,
  )
),

Without readonly attribute, the form field is formatted in Time:Sec. It would be really helpful, if the formatting of a field is not gone, if the field is read only.

Actions #1

Updated by Ernesto Baschny over 10 years ago

  • Tracker changed from Feature to Bug

This is a usability fix, and not a new feature. Changing tracker.

Actions #2

Updated by Patrick Broens about 10 years ago

  • Status changed from New to Closed
  • Assignee set to Patrick Broens
  • Priority changed from Should have to -- undefined --
  • Is Regression set to No

You can use a hidden feature, called format, like:

'duration' => array (
  'exclude' => 1,
  'label' => 'LLL:EXT:my_extkey/locallang_db.xml:tx_myextkey_tablename.duration',
  'config' => array (
    'type' => 'input',
    'size' => '8',
    'max' => '8',
    'eval' => 'timesec',
    'readOnly' => 1,
    'format' => 'timesec'
  )
),

The documentation team has already been notified, because this needs to go in the TCA documentation.

Actions

Also available in: Atom PDF