Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » Blog Summaries

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

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

Page: 1
Go to End
Author Topic: 958 Views
  • HanSolo
    Avatar
    Community Member
    83 Posts

    Blog Summaries Link to this post

    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

  • Willr
    Avatar
    Forum Moderator
    5508 Posts

    Re: Blog Summaries Link to this post

    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!

    958 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.