Show only translated objects

Author Message

Mads Ovesen

Thursday 24 February 2005 5:03:32 am

Hi...

I have a multilanguage site, with Danish as the default language, and a list of products (names) which I need to show in a leftmenu. The problem is that only some of the products should be translated. Instead of not showing the product (name) at all in the leftmenu, ezp shows the product in the default language. How do I most easy get around this problem? I'm using version 3.4.

- Mads

/m

Lazaro Ferreira

Thursday 24 February 2005 7:08:20 am

Hi,

I would recommend you to create another admin siteaccess for your second language, then you can publish all of your not Danish translation content from there, you should also publish these content in another sub-tree

That way EZP won't show your second language content on your Danish default page

Lazaro
http://www.mzbusiness.com

Paul Forsyth

Thursday 24 February 2005 7:46:53 am

This feature has been added to 3.5.1 but not 3.4. If you have a read of this mailing list thread you can see the code for yourself.

http://lists.ez.no/pipermail/sdk-public/2005-January/000816.html

This was added to the tree and list fetch functions.

paul

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 18 2025 22:15:33
Script start
Timing: Jan 18 2025 22:15:33
Module start 'layout'
Timing: Jan 18 2025 22:15:33
Module start 'content'
Timing: Jan 18 2025 22:15:33
Module end 'content'
Timing: Jan 18 2025 22:15:33
Script end

Main resources:

Total runtime0.0179 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 587.9219152.6250
Module start 'layout' 0.00740.0034 740.546939.4453
Module start 'content' 0.01070.0050 779.992289.1172
Module end 'content' 0.01570.0022 869.109430.3047
Script end 0.0179  899.4141 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002513.9090140.0002
Check MTime0.00116.0960140.0001
Mysql Total
Database connection0.00158.138610.0015
Mysqli_queries0.002715.273930.0009
Looping result0.00000.122310.0000
Template Total0.001910.410.0019
Template load0.00116.165110.0011
Template processing0.00084.252710.0008
Override
Cache load0.00073.912510.0007
General
dbfile0.00021.383580.0000
String conversion0.00000.057140.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