ajax editing in multilanguage site

Hello

I don't know if that's a bug or I'm missing something. I have bilingual site, and if I edit language dependent fields from admin interface (e.g. image title) from admin interface everything works great. However - if I edit title field via ajax edit from front side, both language versions of title get replaced by the one I change in currently chosen language. (I've checked the database - title is saved in plain text there - not in language serialized version)

Alexey

Comments

  • The Ajax editing is not (and cannot be) multilingual. So if you have a multilingual site, don't use it.
  • thanks for answer. By the way - why i cannot be multilingual? To change editinplace function I need to read serialized data, and replace data with current language - what do you think it could be possible so I could try to hack it?
  • YOu could try that if you think you can make it work.
  • I am trying to use the multilingual features of zenpage (admin editing) Everytime I save a page with both English and Polish, I get this error Warning: array_shift() [function.array-shift]: The argument should be an array in /zenphoto/zp-core/functions-i18n.php on line 400 I have tried deleting the page and adding it back and still same result. The titles and gallery seem to working fine, it is just the content pages in zenpage.
  • Can you please locate the database record for the page giving you this error. Please post the content of the database field for the item you are trying to edit.
  • I guess this is the problem.. record is --->a:2:{s:5:"en_US";s:780859:"<p>Chapter One - Proble... This is content field in table zp_zenpages_pages.. The title field is--->a:2:{s:5:"en_US";s:25:"Chapter One - (1884-1899)";... The sort order field is blank. I am not using UTF-8 in php, but I am checking all the title links to be sure they don't have any special characters. and yes.. thank you for zenphoto.. it is fantastic.. very well designed and coded. It also lost its parentid and got set to NULL. maybe I don't have something set correctly. All the other pages that have only English work fine.
  • acrylian Administrator, Developer
    I don't think that we have support for ajax inline editing of the Zenpage page content on the theme. I actually have actually never tested at all.
  • Well, probably I need to see the whole field text. (Sorry if it is a lot, maybe an example with just a small bit would be better?). The question is whether the field is a properly formatted serialized array. It is a serialized array (which it should be for multilingual). The only "susupect" is that the data is not unserializing properly.
Sign In or Register to comment.