Disable translation for specific attribute?

Author Message

Sebastian Picklum

Tuesday 24 January 2006 6:15:32 am

Hi together!

I was wondering if it is possible to disable translation and maybe versioning for specific attributes of a class. E.g. I want to disable translation of an image-attribute so that the image-file is stored only once on the server for all languages.

Regards

Sebastian

sp@php.net

Ɓukasz Serwatka

Tuesday 24 January 2006 6:33:17 am

Hi Sebastian,

You can disable translation for specific attribute in edit mode of your content class.

1. Go to Setup->Classes
2. Choose class to edit and click edit button
3. Disable translation (checkbox) for specific attribute
4. Save changes

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Sebastian Picklum

Tuesday 24 January 2006 6:38:10 am

Thanks for your reply!

I did disable translation for the Image-attribute in the specific class but there are still two directories showing up in the file system...

sp@php.net

Sebastian Picklum

Tuesday 24 January 2006 7:26:24 am

Hmm, I took a look at the eZp source code. Is it right that the files I see are just hard links? So the webspace is not wasted with multiple copies of one image? Are the images stored in "images-versioned" the reference files for the links?

sp@php.net

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 30 2025 19:41:36
Script start
Timing: Jan 30 2025 19:41:36
Module start 'layout'
Timing: Jan 30 2025 19:41:36
Module start 'content'
Timing: Jan 30 2025 19:41:37
Module end 'content'
Timing: Jan 30 2025 19:41:37
Script end

Main resources:

Total runtime1.2790 sec
Peak memory usage8,192.0000 KB
Database Queries60

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0048 588.2656151.2266
Module start 'layout' 0.00480.0043 739.4922220.7188
Module start 'content' 0.00911.2691 960.21094,450.8047
Module end 'content' 1.27820.0008 5,411.015611.8125
Script end 1.2789  5,422.8281 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00360.2828160.0002
Check MTime0.00130.1018160.0001
Mysql Total
Database connection0.00060.049010.0006
Mysqli_queries1.192493.2289600.0199
Looping result0.00070.0525580.0000
Template Total1.227195.920.6136
Template load0.00180.142020.0009
Template processing1.225395.801520.6126
Template load and register function0.00180.137210.0018
states
state_id_array0.00180.138710.0018
state_identifier_array0.00270.213720.0014
Override
Cache load0.00150.1206200.0001
Sytem overhead
Fetch class attribute can translate value0.00200.155820.0010
Fetch class attribute name0.00320.253450.0006
XML
Image XML parsing0.00060.048620.0003
class_abstraction
Instantiating content class attribute0.00000.001450.0000
General
dbfile0.00090.0725180.0001
String conversion0.00000.000840.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
5content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 13
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs