[TYPO3-UG Cambodia] Backend(TCA): decimal number

Visay Keo typo3 at visay.info
Thu Jan 20 16:08:39 CET 2011


Hi Dara,

I think the backend is limited for such a requirement. Maybe it's 
possible to write your own user function to implement that.

Visay

On 01/20/2011 10:07 AM, May Dara wrote:
> Dear TYPO3 Cambodia Group,
>
> In TCA when I configure one textbox:
> "type" => "input",
> "size" => "7",
> "max" => "7",
> "checkbox" => "",
> "eval" => "double2",
>
> and in the ext_table.sql I put that field:
> fieldname decimal(7,2) DEFAULT '0.00' NOT NULL,
>
> In the textbox in BE when I enter:
> 3 show 3.00
> 3.5 show 3.50
>
> I don't want like this, I want
> 3 show 3 (still the same)
> 2 show 2
> 2.5 show 2.5 (but they can enter as decimal number)
> 4.50 show 4.50
>
> So if you have any solution and clue, please tell.
>
> thank you
>
> May Dara,


More information about the TYPO3-UG-Cambodia mailing list