Jump to:

1842 Posts in 1600 Topics by 558 members

Blog Module

SilverStripe Forums » Blog Module » Listing Blog Entries in the same order as shown in the SiteTree at Admin Section...

Discuss the Blog Module.

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

Page: 1
Go to End
Author Topic: 809 Views
  • MULTIDOTS
    Avatar
    Community Member
    16 Posts

    Listing Blog Entries in the same order as shown in the SiteTree at Admin Section... Link to this post

    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

  • dio5
    Avatar
    Community Member
    501 Posts

    Re: Listing Blog Entries in the same order as shown in the SiteTree at Admin Section... Link to this post

    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.

    809 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.