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

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 19 2025 15:21:07
Script start
Timing: Jan 19 2025 15:21:07
Module start 'layout'
Timing: Jan 19 2025 15:21:07
Module start 'content'
Timing: Jan 19 2025 15:21:07
Module end 'content'
Timing: Jan 19 2025 15:21:07
Script end

Main resources:

Total runtime0.0214 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0074 589.3984152.6563
Module start 'layout' 0.00740.0049 742.054739.5078
Module start 'content' 0.01240.0069 781.562593.3672
Module end 'content' 0.01930.0021 874.929734.3047
Script end 0.0214  909.2344 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002813.1689140.0002
Check MTime0.00135.8459140.0001
Mysql Total
Database connection0.00125.622410.0012
Mysqli_queries0.003817.805830.0013
Looping result0.00000.181310.0000
Template Total0.00177.710.0017
Template load0.00094.095310.0009
Template processing0.00073.489110.0007
Override
Cache load0.00062.706110.0006
General
dbfile0.00146.459980.0002
String conversion0.00000.055640.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs