Author Topic

Gaetano Giunta

Tuesday 19 July 2011 11:49:24 am

Comment69459

I fully agree that the fromString method, while extremely useful, is not good enough.

  1. It is not supported by 100% of the datatypes
  2. It does not involve all of the validation done when editing content via the browser

Point 2 is especially important, as there is currently no other method (afaik) that does it - datatype validation is sadly tied to variables being there in $_POST. This has the nasty effects that a lot of import scripts do create inconsistent data (inconsistent wrt. content class definition).

Let's hope that this will be fixed in the new content-management API currently in the works...

Principal Consultant International Business
Member of the Community Project Board