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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

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   1519 Views

Avatar
Multidots

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...

Thanks,
MULTIDOTS

Avatar
dio5

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.