attribute_id

Author Message

Golvier Jean

Friday 14 May 2004 2:49:38 am

How could I find the attribute_id of language_code ? My aim is to filter articles on language attribute because on my multilingual website, all articles of my primary language are not translated in the second language.

Thanks for help,

Jean

Willie Seabrook

Friday 14 May 2004 10:29:29 pm

From ez version 3.3 (i *think* thats the correct version) you can view the number id of each attribute from the content classes page under setup. Just click on the link to view the class as you would view any content object.

If your version of ezPublish is earlier then you'll have to click the edit button.

Are you in fact talking about an actual attribute here or localisation?

Regards,
Willie

Golvier Jean

Monday 17 May 2004 7:02:13 am

"Language" is not a part of "article" class when you look at this class in the setup.

In order to reach my goal, I make a switch condition which match the language_code but I can't use it everywhere. In another page where I use a fetch with google type pagination, I must filter on language in the fetch otherwise only translated articles are shown but pagination correspond to all articles ?

Help me !

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 03:33:39
Script start
Timing: Jan 31 2025 03:33:39
Module start 'layout'
Timing: Jan 31 2025 03:33:39
Module start 'content'
Timing: Jan 31 2025 03:33:39
Module end 'content'
Timing: Jan 31 2025 03:33:39
Script end

Main resources:

Total runtime0.0249 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.0056 588.0078151.1953
Module start 'layout' 0.00560.0048 739.2031220.6406
Module start 'content' 0.01040.0128 959.8438997.6484
Module end 'content' 0.02320.0017 1,957.492229.9922
Script end 0.0249  1,987.4844 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002911.7524140.0002
Check MTime0.00124.6284140.0001
Mysql Total
Database connection0.00093.562510.0009
Mysqli_queries0.002710.767930.0009
Looping result0.00000.056510.0000
Template Total0.00124.710.0012
Template load0.00093.510810.0009
Template processing0.00031.153010.0003
Override
Cache load0.00062.357810.0006
General
dbfile0.00114.278880.0001
String conversion0.00000.032640.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