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.

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

Avatar
HanSolo

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?

Regards
Joakim

Avatar
Willr

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!