Listing order of embedded articles?

Author Message

Knut Nes

Tuesday 04 October 2005 5:19:24 am

This is probably quite easy, but I can't figure it out. On the front page I have put a box listing the contents of the article page. The problem is that the oldest articles are on top, so the embedded list box is always displaying the same old articles. That is pretty meaningless.

How do I fix this? What template?

Thanks
Knut

Knut Nes

Thursday 13 October 2005 5:22:39 am

Didn't I manage to express myself? Still hoping for some help here.

Knut

Xavier Dutoit

Thursday 13 October 2005 6:08:16 am

I did a quick fix on the kernel to set the order.

--- kernel/classes/ezcontentobject.php  (revision 13696)
+++ kernel/classes/ezcontentobject.php  (working copy)
@@ -1968,7 +1968,9 @@
                                     ezcontentobject_link.from_contentobject_id='$fromObjectID' AND
                                     ezcontentobject_link.from_contentobject_version='$fromObjectVersion' AND
                                     contentclassattribute_id=$attributeID
-                                    $versionNameJoins" );
+                                    $versionNameJoins
+                                 ORDER BY
+                                    ezcontentobject.published DESC" );

http://www.sydesy.com

Knut Nes

Monday 17 October 2005 2:02:37 am

Thanks for your reply.

Unfortunately this doesn't seem to work out for me. I removed the one line and added the three other ones in the php file. I refreshed my page and found no changes. I cleared the "content view cache" (or what's it's name), refreshed and found no changes.

Have I missed something to get this to work?

I'm using the <embed href="ezobject://...">, just to be clear on what I'm talking about.

Thanks
Knut

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 23:06:04
Script start
Timing: Jan 18 2025 23:06:04
Module start 'layout'
Timing: Jan 18 2025 23:06:04
Module start 'content'
Timing: Jan 18 2025 23:06:05
Module end 'content'
Timing: Jan 18 2025 23:06:05
Script end

Main resources:

Total runtime1.1863 sec
Peak memory usage4,096.0000 KB
Database Queries60

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0061 588.0156152.6250
Module start 'layout' 0.00610.0033 740.640639.4453
Module start 'content' 0.00941.1753 780.0859541.0547
Module end 'content' 1.18470.0016 1,321.140612.1563
Script end 1.1863  1,333.2969 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00300.2526160.0002
Check MTime0.00120.0993160.0001
Mysql Total
Database connection0.00100.085610.0010
Mysqli_queries1.140296.1147600.0190
Looping result0.00050.0431580.0000
Template Total1.145896.620.5729
Template load0.00200.172120.0010
Template processing1.143896.411320.5719
Template load and register function0.00010.009510.0001
states
state_id_array0.00160.133010.0016
state_identifier_array0.00160.134620.0008
Override
Cache load0.00160.1368210.0001
Sytem overhead
Fetch class attribute can translate value0.00050.039820.0002
Fetch class attribute name0.00080.069550.0002
XML
Image XML parsing0.00060.049820.0003
class_abstraction
Instantiating content class attribute0.00000.001050.0000
General
dbfile0.00160.1307160.0001
String conversion0.00000.000740.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
4content/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
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 16
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs