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're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

Archive /

Our old forums are still available as a read-only archive.

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

Blog Summaries

Go to End

2 Posts   1059 Views


Community Member, 87 Posts

15 September 2008 at 11:44pm

Hi everyone.

I tried to put a blog summaries on the first page(start page) I only get there are no blog entries. When I go to the blog page, i can find the summaries on that page. I also got another problem, I have 2 different blogs on my page. How can I choose from wich of them the summaries should come from?



Forum Moderator, 5523 Posts

16 September 2008 at 10:08am

What is your currentfunction to display blog entries on the homepage?

You could specify which blog holder to use by doing something like this

$blogs = DataObject::get("BlogEntry", "ParentID = '2'", "","","10");

Where 2 is the page ID of the blog holder you want it from. There is better ways of doing this eg using the name of the parent to filter but that would require more then 1 line of code!