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.

Archive /

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

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

Blog Summaries


Reply


2 Posts   993 Views

Avatar
HanSolo

Community Member, 83 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, 5513 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!