Forums / Developer / Class translation and information collector (3.9.1)

Class translation and information collector (3.9.1)

Author Message

Piotrek Karaƛ

Tuesday 24 April 2007 2:27:53 am

Hello,

We've come across a serious problem with class translation and information collector in eZ publish 3.9.1. I'll try to give all relevant details:

We have a multi-language site with separate structures for each language using the same set of translated content classes (3.9 feature). There's no need for translation priority - each siteaccess makes use of just one translation. Even though from what I understand it shouldn't really matter, all the classes were originally created in one of the languages (pol-PL). Then there's one class with several information collector attributes, some of them marked as required. In the full view template for that class we have a form that makes it possible to submit information to be collected and/or to be sent via e-mail.

The form works fine in one language (pol-PL). It gets validated (via validation template), forcing the required fields to be filled in. When we try to use the exact same combination for another language/siteaccess, the form doesn't seem to be treated as a form anymore. It displays fine, however no fields are validated/forced when submitted - it goes directly to the summary template (reporting zero of collected information). The administration interface shows empty instances of the form being submitted (so we know, that there have been say five attempts to submit data), with no information collected whatsoever.

This situation is double strange because we have already used the exact same solution for another multi-language site and all went smooth. There was a substantial difference though: the other site had just one structure and used object translation as primary language engine.

Any suggestions would be appreciated.

--
Company: mediaSELF Sp. z o.o., http://www.mediaself.pl
eZ references: http://ez.no/partners/worldwide_partners/mediaself
eZ certified developer: http://ez.no/certification/verify/272585
eZ blog: http://ez.ryba.eu

Bartek Modzelewski

Tuesday 24 April 2007 4:26:32 am

Hi Piotrek

I'm sure that it's connected to bug that I've reported 2 months ago: http://issues.ez.no/IssueView.php?Id=10336&activeItem=2

Basic problem is that your form (generated by eZp) does not consist all of fields (input tags with proper name attribute) requiered by eZp. In this case eZp won't give you any error message, just will stay on content/action page and display your form.

My solution was to recreate all objects (forms) after making new class translations, but maybe there are some other things which casues problem.

Good luck.

Bartek

Baobaz
http://www.baobaz.com