Listing order of embedded articles?

Listing order of embedded articles?

Tuesday 04 October 2005 5:19:24 am - 3 replies

Author Message

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

You must be logged in to post messages in this topic!

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.