Problem with language_mask

Problem with language_mask

Tuesday 19 December 2006 4:12:41 am - 5 replies

Modified on Tuesday 19 December 2006 4:15:14 am by luis muñoz

Author Message

Claudia Kosny

Tuesday 19 December 2006 5:32:16 am

Hi Lius

The number of items in the two tables is different because one contenobject can have several versions. I think of you would count the distinct contentobject_ids in the version table you should get the same number for both (not sure)

Generally I would not worry about the internal workings of EZ for this. To make an object avilable no matter whether it is translated in the current language or not, just tick the checkbox for 'Use the main language if there is no prioritized translation.' for this object (it is in the block translations of the detailed view of the object).

If this should be enabled by default for all objects of this class, tick the checkbox for 'default object availability' when editing the class. Please note that any changes to this setting will not affect existing objects, so you have to change all existing objects manually (or maybe per script).

Check e.g. here
http://ez.no/community/developer/specs/improved_multi_language_in_ez_publish_rev_2
under 'ignoring translation'.

Claudia

luis muñoz

Tuesday 19 December 2006 5:47:28 am

Hi Claudia,
I noticed about versions, that isn't the problem. The problem is that i have diferent values for language_mask in both tables for the same object. I was making the sql to make the manual change to the objects when I noticed that.
I think that the value should be the same in both tables, no mather wich version, but it isn't. I dont wanna change anything in any table until i know if i can change it without later problems.

Thanks,
Luis

luis muñoz

Tuesday 19 December 2006 6:29:24 am

Hi,
I've found another thing:
If i check "Default object availability" in the setup->class menu the new objects are created with the right value in both tables.
Is it possible that the system is only using the table ezcontentobject to see the availability of an object?

Thanks,
Luis

Claudia Kosny

Tuesday 19 December 2006 6:38:38 am

Hi Luis

The way I understand the docu having different language masks this is normal.
Description for language_mask for contentobject:

The sum of the ID numbers of the languages in which the last published version of the object exists. Please note that the ID numbers are powers of 2. 1 (2^0) is reserved for marking objects that should always be available. Objects that are always available will be fetched even if they do not exist in any of the site/prioritized languages (the initial/main language of the object will be used).

Description for language_mask for contentobjectversion:

The sum of the ID numbers of the languages in which the version exists plus 1.

So they are not the same.

Claudia

luis muñoz

Tuesday 19 December 2006 8:57:09 am

Hi Claudia,

Thanks for your help. Looks like you are right. I made an SQL wich modified the content and now it seems to work

Thanks
Luis

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

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