17488 Posts in 4473 Topics by 1978 members
|Go to End|
15 September 2008 at 11:44pm
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?
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!
|Go to Top|