Jump to:

1835 Posts in 1139 Topics by 554 members

Blog Module

SilverStripe Forums » Blog Module » Extend BlogEntry to allow list of sibling entries [SOLVED]

Discuss the Blog Module.

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

Page: 1
Go to End
Author Topic: 814 Views
  • losqualo
    Avatar
    Community Member
    17 Posts

    Extend BlogEntry to allow list of sibling entries [SOLVED] Link to this post

    I would like to include a short list of latest siblings to a current blog entry in sidebar navigation.

    When on the entry page there is no access to BlogEntries and I can't figure out how to reach the siblings information... I'd need the navigation text and link at the very least.

    Clearly the entry itself has no children, so the Children controller won't work. I've tried using ChildrenOf, but am either not sending the appropriate info, or it's not the solution either.

    Thought about extending the class as the likely solution, but my understanding of OOP at this point is insufficient without some guidance.

    If there are five articles in a BlogHolder and I'm on the entry page for one of them, then I'd want to list all five, with the current one inactive and highlighted, and the other four as active links. That side of it I can handle, but I'm not clear on how to obtain the list of siblings as data on which to then work.

    Thanks for any pointers.

    Rob

  • losqualo
    Avatar
    Community Member
    17 Posts

    Re: Extend BlogEntry to allow list of sibling entries [SOLVED] Link to this post

    Duh!

    Talk about overlooking the obvious! Helps to have ShowInMenus enabled... all works then!

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