Forums / Setup & design / default language for object editing in admin interface?

default language for object editing in admin interface?

Author Message

Marko Žmak

Wednesday 19 July 2006 1:05:31 pm

I'm using eZ 3.8.1 and I have a multilingual site. Is there a way to set a default lanugage when you edit an object by clicking the edit icon in the line view? So that the language selection page doesn't appear when you click the edit icon.

Similar thing was asked and answered before but for the user siteacces, and no one discussed how this can be setup in the admin interface.

So, is there a way?

--
Nothing is impossible. Not if you can imagine it!

Hubert Farnsworth

Marcin Drozd

Wednesday 19 July 2006 3:51:23 pm

Hi Marko
try this code (add to <form> in your tpl):
<input type="hidden" name="ContentObjectLanguageCode" value="{$node.contentobject_version_object.initial_language.locale}" />
it works for me, but it isn't default language what U want to get.

http://ez-publish.pl

Marko Žmak

Wednesday 19 July 2006 10:44:05 pm

No Marcin, this is not what I want. You described how to set the editing language in templates that I create, and I want to set the default language (with some INI setting or similar) in the default admin interface that comes with eZ installation.

And I don't wan't to modify the templates for admin interface.

--
Nothing is impossible. Not if you can imagine it!

Hubert Farnsworth

Kristof Coomans

Thursday 20 July 2006 2:09:05 am

Marko, just create an extension containing the admin design with the templates you want to change. The templates from the extension will have higher precedence than the ones in the main design directory.

Then follow the instructions provided by Marcin. You can adapt the code to get the language from an ini setting with the ezini template operator.

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org