Forums / Setup & design / Translations visibility and content sorting

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)

eZ debug

Timing: Jan 18 2025 11:45:04
Script start
Timing: Jan 18 2025 11:45:04
Module start 'content'
Timing: Jan 18 2025 11:45:05
Module end 'content'
Timing: Jan 18 2025 11:45:06
Script end

Main resources:

Total runtime1.0284 sec
Peak memory usage4,096.0000 KB
Database Queries197

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0058 587.8438180.8125
Module start 'content' 0.00580.8234 768.6563553.2344
Module end 'content' 0.82920.1990 1,321.8906336.7422
Script end 1.0282  1,658.6328 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00470.4579210.0002
Check MTime0.00160.1549210.0001
Mysql Total
Database connection0.00060.062210.0006
Mysqli_queries0.938391.23841970.0048
Looping result0.00300.29201950.0000
Template Total0.988996.220.4944
Template load0.00260.250520.0013
Template processing0.986395.906520.4931
Template load and register function0.00020.019510.0002
states
state_id_array0.00230.227910.0023
state_identifier_array0.00140.138220.0007
Override
Cache load0.00220.2162200.0001
Sytem overhead
Fetch class attribute can translate value0.00360.348630.0012
Fetch class attribute name0.00100.101450.0002
XML
Image XML parsing0.00090.089130.0003
class_abstraction
Instantiating content class attribute0.00000.001050.0000
General
dbfile0.00330.3235270.0001
String conversion0.00000.000530.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

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
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 15
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs