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.