Translations visibility and content sorting

Author Message

Mariusz Kruk

Saturday 02 May 2009 12:41:59 am

Hello there.
I'm trying to set up a simple site based on ezwebin but found two problems:
1. Regardless of what I set in properties of Folder class, the contents of embedded folders show in order of ID. The parameters just gets completely ignored. I worked around it by explicitely providing 'sort_by' in template code, but it's still a bit annoying
2. As far as I understand the i18n mechanism, if I have an object that is in one language only, it should not appear in other language unless the 'use the ain language if there is no prioritized translation' checkbox is set. And it works great but only if I want to filter out english content from polish site. It doesn't work the other way around - polish content is always shown if I don't have english version. I assume that I'm misunderstanding something but the question is - can I do it so that I can see only english content in english version and only polish content in polish version (only some objects exist in both versions).

Mariusz Kruk

Saturday 02 May 2009 1:02:01 am

OK. I'm answering myself here, but maybe it'll help someone. I resolved the second problem. It seems in eng siteaccess I had two languages defined in SiteLanguageList array. When I removed pol-PL from that array it seems to be working just as it should.

Marco Zinn

Saturday 02 May 2009 1:45:52 am

Hi Mariusz,

i know the first problem, as this regularly happens to us, when we use siteaccess for german.
The setting, that you do for the folder class is used as a default value, when creating a new object of this class. That means: Changing the "sort order" setting here will NOT change any object of that class, that already exist.
You can change the setting of each individual object in the admin interface, when you "view" the object. There is a "sort by" dropdown list below the list of child object. I guess, this is set to something like "object ID" or -even worse- "class id" or "class name".
IF your newly created objects still have the wrong sort order, AFTER you changed the class definition, it's probably a bug. Maybe it's the one, that i had reported here: http://issues.ez.no/IssueView.php?Id=14341&activeItem=3
Which version of ez are you using?

Marco
http://www.hyperroad-design.com

Mariusz Kruk

Saturday 02 May 2009 4:38:04 am

Oh, I thought that sort order in admin panel applied only to how the objects are shown in that panel. Thanks for the tip, I'll try it.
(and I'm using the current version - 4.1.0)

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 31 2025 01:32:56
Script start
Timing: Jan 31 2025 01:32:56
Module start 'layout'
Timing: Jan 31 2025 01:32:56
Module start 'content'
Timing: Jan 31 2025 01:32:56
Module end 'content'
Timing: Jan 31 2025 01:32:56
Script end

Main resources:

Total runtime0.0228 sec
Peak memory usage6,144.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0052 588.2656151.2266
Module start 'layout' 0.00520.0044 739.4922220.7188
Module start 'content' 0.00960.0117 960.21091,001.8359
Module end 'content' 0.02130.0015 1,962.046933.9922
Script end 0.0228  1,996.0391 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002611.3400140.0002
Check MTime0.00114.6396140.0001
Mysql Total
Database connection0.00094.107110.0009
Mysqli_queries0.003012.979130.0010
Looping result0.00000.053210.0000
Template Total0.00114.710.0011
Template load0.00083.621710.0008
Template processing0.00021.015810.0002
Override
Cache load0.00052.229010.0005
General
dbfile0.00031.201680.0000
String conversion0.00000.029240.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