[TYPO3-core] RFC: fix bug #1801 (no real read-only TCA field)

Martin Kutschker Martin.Kutschker at blackbox.net
Fri Jan 13 15:48:02 CET 2006


Martin Kutschker writes on 
Sun, 08 Jan 2006 12:41:40 +0100 (MET):

> 
> This is a CVS patch request.
> 
> Problem: TCA doesn't support read-only fields out-of-the-box except
> plain text fields. If you need custom types, even simple ones, you
> must use a custom fucntion with type "user".
> 
> Solution: Enhance type "none" with a set of useful types and
> formatting options.


More comments on this?

I'm going to rewrite the patch with atributes (see below) on request.

Ideas for the new configuration:

# format a date or time
format = date
# format string, format depends on format.option.type
# default value: d-m-y
format.option = d-m-y
format.option.type = date | strftime
# appends the age in brackets
format.appendAge = 1

# shorthand for format = date with format i:H d-m-Y
format = datetime

# shorthand for format = date with format %M:%H
format = time 
# shorthand for format = date with format %M:%H:%S
format = timesec

format = int
format.option = dec|hex|oct|bin

format = float
format.option = <precision>

# money field with formatting according to the locale 3.234,01
format = money

format = md5

format = user
format.option = <userfunc>
format.args = <argument array>

Masi 



More information about the TYPO3-team-core mailing list