Share » Forums » Setup & design » default language for object editing...

default language for object editing in admin interface?

default language for object editing in admin interface?

Wednesday 19 July 2006 1:05:31 pm - 3 replies

Author Message

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

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu