Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Blog Module /

Discuss the Blog Module.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Listing Blog Entries in the same order as shown in the SiteTree at Admin Section...

Go to End

2 Posts   1145 Views


Community Member, 16 Posts

4 October 2009 at 4:08am

Hi All,

Greetings !

I am facing a problem while fetching the Blog Entries from a Blog Holder.

The issue is that when I fetch the Entries from a particular Blog, it is not returning the result as in the order that I have arranged in the SiteTree.
I want to List/Display the entries in the same order that I have arranged in the Admin section.

Is it possible to fetch the Blog Entry List in the same order as in the Admin Section?

Please guide me. Awaiting your responses...



Community Member, 501 Posts

13 October 2009 at 3:15am

If I'm correct the blogholder lists the entries sorted by Date (as you would expect on a blog), so if you want that out, you'll need to open up BlogHolder.php (or BlogTree.php depending on the version), find the method called 'Entries', and remove the $order part.