Wednesday 24 March 2010 6:53:06 am
OK, this is he actual situation. I have managed to create the float datatype which is searchable and can collect information. I also created all the necessary templates. Everything is working fine. It is in QA / Test for a few days now. Now i am facing 2 issues which are left and partly have to be addressed to the ez-developers: L10n is playing mad with me. In germany we do have '.' as thousand separator and ',' as decimal separator. Other countrys might have it the other way around. This has to be addressed in the datatype-code itself when storing to DB and fetching the value from DB. Also all the templates need to address this issue. It is currently implemented in a few ezFloat templates, but seems not to work correctly. I can do this by enhancing my float-datatype-code and do some magic when fetching user-input and storing to database and when fetching from database to send to the templates...
And there seems to be a bug in ezpublish, i filed a bugreport already: 16509 The problem is, that when the datatype is marked as 'not required' and the user has typed in nothing, a 0 (zero) is stored in the database, which is not correct. It should store null. The database schema supports those null-values, but the ezcontentclassattribute-definition describes 0 (zero) as a default value which in turn is choosen... But that is NOT what the user has typed in... This affects all numeric based datatypes (eZInteger, eZFloat, eZPrice, ...). I'll keep you posted. The Datatype itself is working. Searching and collecting information is available. Templates are fine too. I might need to wait for ez for feedback on the 0-vs-null issue before publishing it. I did not encounter any other issues yet.
cheers, chris
Hannover, Germany
eZ-Certified http://auth.ez.no/certification/verify/395613
|