Is it possible to make sort by related object name ?

Author Message

Martynas Bilevičius

Friday 26 October 2007 1:35:02 am

Is it possible to make sort by related object name ?

Example:

1.Product class fields
1. Name
2. Product Maker (Object Relation)

2.Product Maker Class Names
1. Name
2. Product maker desctiption

I have two product makers name

1. First maker name is "Ardo"
2. Second product maker name is "Siemens"

And i have two products
First product name is ("Bath 1") related to Firs product maker ("Adro")
Second product name is ("Aprod 2") related to second product maker ("Siemens")

And i need sort product by their product maker name.

After sort i should get

1. Bath 1 (Because it's maker name is Ardo, first letter A)
2. Aprod 2 (Because it's maker name is Siemens, first letter S)

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 19:04:54
Script start
Timing: Jan 18 2025 19:04:54
Module start 'layout'
Timing: Jan 18 2025 19:04:54
Module start 'content'
Timing: Jan 18 2025 19:04:56
Module end 'content'
Timing: Jan 18 2025 19:04:56
Script end

Main resources:

Total runtime1.2373 sec
Peak memory usage4,096.0000 KB
Database Queries46

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0090 590.4453152.6406
Module start 'layout' 0.00900.0042 743.085939.4766
Module start 'content' 0.01331.2225 782.5625406.2109
Module end 'content' 1.23570.0015 1,188.77348.1250
Script end 1.2373  1,196.8984 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00440.3576160.0003
Check MTime0.00170.1406160.0001
Mysql Total
Database connection0.00140.109910.0014
Mysqli_queries1.191796.3108460.0259
Looping result0.00050.0427440.0000
Template Total1.194996.620.5975
Template load0.00250.203220.0013
Template processing1.192496.370820.5962
Template load and register function0.00020.018110.0002
states
state_id_array0.00090.074610.0009
state_identifier_array0.00230.188520.0012
Override
Cache load0.00200.1656210.0001
Sytem overhead
Fetch class attribute can translate value0.00110.085810.0011
Fetch class attribute name0.00070.053210.0007
XML
Image XML parsing0.00020.019210.0002
class_abstraction
Instantiating content class attribute0.00000.000610.0000
General
dbfile0.00070.0604100.0001
String conversion0.00000.001040.0000
Note: percentages do not add up to 100% because some accumulators overlap

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
1content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
6content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
5content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 14
 Number of unique templates used: 5

Time used to render debug report: 0.0002 secs